Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/PitchBlackRecoveryProject/pbrp_tg_bot

Offiical Telegram Bot of PBRP
https://github.com/PitchBlackRecoveryProject/pbrp_tg_bot

cleanup

82c9a2912a751f4e5275dd264f814e4906ce1bec authored almost 7 years ago by Paul Larsen <[email protected]>
Fix typo

0b989004ef6dcc3646b45e5f771c54b4dc598887 authored almost 7 years ago by Paul Larsen <[email protected]>
Forgot to import html for bans, resulting in no logs

bfc695d03f673e618fb7c9af3cf9aed9d99f3a68 authored almost 7 years ago by Paul Larsen <[email protected]>
ensure code doesnt trigger commands

3e8a6b7fbfd9ead59167a702ed0c405c8551612f authored almost 7 years ago by Paul Larsen <[email protected]>
Ensure that commands are parsed correctly.

f8593529f0367b4a3f6e1a2aef69c6a22c896094 authored almost 7 years ago by Paul Larsen <[email protected]>
Don't send 'user not liked' messages for replies

b6d6ee76ecedb08cbe5529010424a530c39bf2c9 authored almost 7 years ago by Paul Larsen <[email protected]>
Ensure bad html content is escaped in chat titles

95a971c305490cebfed39c10c25395b49698982b authored almost 7 years ago by Paul Larsen <[email protected]>
Update logging to use HTML instead of markdown.

2962e2f4959d7338e2595ac5f605965ab9cc3540 authored almost 7 years ago by Paul Larsen <[email protected]>
remove logchannel if channel is gone

b5fa6e7fac79be238b0937e712aaa0aaf0c8bcc0 authored almost 7 years ago by Paul Larsen <[email protected]>
Only mark as ungbanned once ungban is succesful

87f883c7e93f4de360facce192be3ea4c1619232 authored almost 7 years ago by Paul Larsen <[email protected]>
Fix a sed edge case which allowed users to use ignorecase to get the bot to say anything

0adffb2a9f64fa7dad4c8af59ec48cd2a610ec54 authored almost 7 years ago by Paul Larsen <[email protected]>
Add some more strings for runs and slaps

8132ead8e11074f12b677046ce2ce9558dba736f authored almost 7 years ago by Paul Larsen <[email protected]>
Add a check when gbanning, to ensure user was gbanned in the first place.

c1b393e611be0ef45066fc89be270de77f693102 authored almost 7 years ago by Paul Larsen <[email protected]>
Add the admin name to the warning reason

f0ea4dc26275fe62dbf9878b0723926dc746677d authored almost 7 years ago by Paul Larsen <[email protected]>
Fix some possible bad url errors

20eb89492df3a4baf1a05a37284fb4f739aa48a5 authored almost 7 years ago by Paul Larsen <[email protected]>
fix regex to avoid some invalid links

915bed0fb286bc750cfba2665273b364d029ece6 authored almost 7 years ago by Paul Larsen <[email protected]>
Fix a disable migration bug

ee56552bc9b1f31e3f6352717e018ca95e36de6f authored almost 7 years ago by Paul Larsen <[email protected]>
Ensure note/filter/welcome buttons are ordered right

1ebbdb4eb901410a843de89d358ff4f8d2c03986 authored almost 7 years ago by Paul Larsen <[email protected]>
update sed help message

7b6f0a65463a65276a60c9642aaddf43363c134e authored almost 7 years ago by Paul Larsen <[email protected]>
Fixed invalid markdown caused by _

8fb2d3bc23c3a9f74d03511dd57c4dc122f30171 authored almost 7 years ago by Paul Larsen <[email protected]>
Add some more error catches for welcome message errors

cf4e9c49ed514d85634630cee1a2384d49b70d4e authored almost 7 years ago by Paul Larsen <[email protected]>
Add support for TG X markdown links in welcome messages, filters, and notes.

7e822f174b69722e7897c19fe2797a04a65b3f5c authored almost 7 years ago by Paul Larsen <[email protected]>
Forgot a single log string...

99261a352aa39e317d0fc05ecce5df6994ed0117 authored almost 7 years ago by Paul Larsen <[email protected]>
Add logging to bans

845a2a5fe5b85b33f064ca8c88ee8c5ee9e0caef authored almost 7 years ago by Paul Larsen <[email protected]>
Update the log message format

c7505ce3363afc761d84c94de615aa3fc782cd7a authored almost 7 years ago by Paul Larsen <[email protected]>
Add a catch to avoid trying to forward messages from bots.

acc67cb40cb2d3c0f30a6bc191710ce20cc1f59c authored almost 7 years ago by Paul Larsen <[email protected]>
Emoji now set the right offset when in notes. This avoids text mangling.

129f66b161e53b0618e37270f56d2128419537ce authored almost 7 years ago by Paul Larsen <[email protected]>
ensure check flood returns text

a25c2bdb04eb51ce96209d70567085da33542fa6 authored almost 7 years ago by Paul Larsen <[email protected]>
Add logging to welcomes

9da51a658176e0e003fc7789f751dd8b5581dadc authored almost 7 years ago by Paul Larsen <[email protected]>
Add logging to warnings

ab799a645f04f20dfa9d7dceeaa2b0a300cb4f43 authored almost 7 years ago by Paul Larsen <[email protected]>
Add logging to reporting

d480c10efcd0a6c7259b9973e6c895c44afc769b authored almost 7 years ago by Paul Larsen <[email protected]>
Add logging to muting

a7bff96028bdbe9bc08ea2073c875c3700a39c93 authored almost 7 years ago by Paul Larsen <[email protected]>
Add logging to msg_deleting

df8a4e33259335fd65624f0620252d2dcb4077ea authored almost 7 years ago by Paul Larsen <[email protected]>
Add logging to locks

2e6b06cf3493852fea548a3558e428f7e97c8468 authored almost 7 years ago by Paul Larsen <[email protected]>
Fix spam occuring when no perms to gban

a2e4fb2f914df9ae77ce1479a4e758166fe988fc authored almost 7 years ago by Paul Larsen <[email protected]>
Add antiflood logging

d9481605a5f43e9cde68a070531b310d48fc62d5 authored almost 7 years ago by Paul Larsen <[email protected]>
Enable admin logging

5c67b513f3b2c9a2c389a003b9584e915b7ba81b authored almost 7 years ago by Paul Larsen <[email protected]>
Ensure all decorators return func result

f337afd2c73d3fb1094e94b6801ca6b4f1f2f1f8 authored almost 7 years ago by Paul Larsen <[email protected]>
Change from __name__ to __mod_name__ for module names

eab06e4b1252c802860c3d58426ba06f942ba17b authored almost 7 years ago by Paul Larsen <[email protected]>
Added extra log channel commands - stats, help, settings

cb8a8be37acfbaf177603c370fed69696ab1cb5f authored almost 7 years ago by Paul Larsen <[email protected]>
Add log channels

9d1dbbf4b92f8b1298018e40c0f48bb2d754db22 authored almost 7 years ago by Paul Larsen <[email protected]>
extract module load checking to a helper function

2635be74601f40e556297deb31de37f6bcba4ba9 authored almost 7 years ago by Paul Larsen <[email protected]>
Fix a nonetype bug

151aa48c2c2d3e9bbaaf7d212b18a8144ce1de34 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a /purge X command

246e159737cbb0bc3cd4cc5d935b44cfc00034e5 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a howtoget to the /save message reply to avoid people failing to save stuff

53794301ba9ffe2af8c6300cfdcb2d817aba57e1 authored almost 7 years ago by Paul Larsen <[email protected]>
Manual warns now reply to the right message

3c4cbe84c89488950540ecc8ec9187c4cf0b441b authored almost 7 years ago by Paul Larsen <[email protected]>
Log ids via replies too - can therefore log bots.

032895dd8077ada2d817def6cd678babea800af1 authored almost 7 years ago by Paul Larsen <[email protected]>
Ensure gbans are enforced correctly, adding bot api 3.6 checks

d5659e5a0e942947fcd68448e2b6be4d636c3263 authored almost 7 years ago by Paul Larsen <[email protected]>
Add the group filter to a bunch of commands to avoid bugs

9729eb86a2821f390d1e1c71622cf603218661da authored almost 7 years ago by Paul Larsen <[email protected]>
Fix another sql session bug affecting warns

90eac8dcd5cceda38d8fb26f41b5817982017467 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a switch to change the warning limits for chats, and the strength - should users be kicked, or banned?

1b912740209e4e8557881bfeb0a25eeb89066ec5 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a check to be 100% sure all filter buttons are deleted

ab54c3a4719ad9904528da3155b1c54f1242b8eb authored almost 7 years ago by Paul Larsen <[email protected]>
Mention that ! and / commands both work.

50e4c9cb5ce6915c17013edf04b2d0f002508223 authored almost 7 years ago by Paul Larsen <[email protected]>
Add some more bot stats. minor cleanup in disabling module

ac0d57a0fef1cd927db8bb2d344d9ddbb3aa938a authored almost 7 years ago by Paul Larsen <[email protected]>
Make sure bot can restrict people when warning

07a98b79fdfaf6d20705b7f3687f4e27b6bdd443 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a check for / at the start of a command

Also allow disabling /info

693d3102905bb7f137069f06a53723d3435abc84 authored almost 7 years ago by Paul Larsen <[email protected]>
Add enabling/disabling of commands

d18221f6e6159cac019cc88c3b13e66524a8377d authored almost 7 years ago by Paul Larsen <[email protected]>
extend sed try-catch clause and log some more

d6adbdff5aa0cb7c7fa318a8531e8a61ce38c174 authored almost 7 years ago by Paul Larsen <[email protected]>
Add contribution guidelines

75d0acef6e9438efbd06235ad03611e133b39af7 authored almost 7 years ago by Paul Larsen <[email protected]>
Purge in reverse

726ff268c551a0972116ebd9486faf4b7c966a2d authored almost 7 years ago by Paul Larsen <[email protected]>
Update readme, and give support group link instead of my username in the start message

6e074fcba18e9193458f440485c409cdeacb62aa authored almost 7 years ago by Paul Larsen <[email protected]>
Add the possibility to button positions

append :same to a url to make sure the button is on the same line.

Make sure to add these colum...

a80295e8d7ee14104d6c65b3189131be036acaea authored almost 7 years ago by Paul Larsen <[email protected]>
Cleanup some of the welcome settings, show buttons when checking preview

ad124ea3ddf302b58b27af1bbbdf2e9ffee6b581 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a flag to support ! commands as well as /.

78070e05ed9ad1a5f38b3b832ae0d041f0cfc462 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a link to the reported message in public supergroups

363e7dd4a80e5a583acf66bcdb2bcf1e260b077a authored almost 7 years ago by Paul Larsen <[email protected]>
Fix a bad indent in user extraction which would cause an error with lack of response later on. Also log some more stuff in case of future errors

383890f21d119a4458cb1a5088bc55c3596529bd authored almost 7 years ago by Paul Larsen <[email protected]>
Stop the double reply from the /info command

f8fa54b194e295f24a434cb9b8f0c65a4a65c487 authored almost 7 years ago by Paul Larsen <[email protected]>
Stop 0 length filters

096eb6670c89518eb33cc0d8a2915865a3c06178 authored almost 7 years ago by Paul Larsen <[email protected]>
Check database username validity.

Usernames can be changed; so it is possible that two users have the same
username. This commit e...

12153b8e0064f622273ae20c6a7833c4f0b61db4 authored almost 7 years ago by Paul Larsen <[email protected]>
Change from edit_text to reply_text to avoid hitting api limits

aec01350e7ebfa9b392aaafa991f6b10d916f9b4 authored almost 7 years ago by Paul Larsen <[email protected]>
Optimisations to admin checks

d84b4d791a2cd0f1b99fa5786c9bda62b9f828a7 authored almost 7 years ago by Paul Larsen <[email protected]>
Sed shouldnt match 0width strings

8001f162b25b69d9c301015b6cbd569a03e4e465 authored almost 7 years ago by Paul Larsen <[email protected]>
Catch a purge exception

29dcef3bbb824e77fa1864705b79a65ae65bbbd7 authored almost 7 years ago by Paul Larsen <[email protected]>
Final fix for entity extraction

90a83ffa31dc18d4b1955b1cd23dec165a73165b authored almost 7 years ago by Paul Larsen <[email protected]>
Add protection for full-sed message replacement

b292e1cd51fe53d82f61368f5bd787f3b15355d0 authored almost 7 years ago by Paul Larsen <[email protected]>
Catch a possible exception and log details for more info

ed3d4eafefafae42fa45253e53ed27d17ac0d996 authored almost 7 years ago by Paul Larsen <[email protected]>
Fix a possible keyerror

27b024bad6b38711bc54b54154f3ddb7eacc4818 authored almost 7 years ago by Paul Larsen <[email protected]>
db entry is singular preview

08c94bb1ff53d8d74e0a7b8e062c607b760ef194 authored almost 7 years ago by Paul Larsen <[email protected]>
Catch an unpin error

ebee256708f62de30b3ccc0a44e2fe864abca8f5 authored almost 7 years ago by Paul Larsen <[email protected]>
Set reports to off by default

b0b582f28ac9e03d8339c37715c22b91961f781a authored almost 7 years ago by Paul Larsen <[email protected]>
Parsemode markdown for reporting

21ca131e2e0e8d97a7e6d1d1b98885872b49816a authored almost 7 years ago by Paul Larsen <[email protected]>
send settings to the right chat

ce2c2e4125511abf586dae078a6f9ba2a57442f6 authored almost 7 years ago by Paul Larsen <[email protected]>
Fix an sql bug

2a0a4a427ba05a9ac1c2d3c62b240ec91b76daff authored almost 7 years ago by Paul Larsen <[email protected]>
Add /report and @admin to the list of available commands

f342109d7263a5152ac2bbb04d943d78fddcf333 authored almost 7 years ago by Paul Larsen <[email protected]>
Add the /settings command

Allows admins to easily monitor their chat settings.
Fully modular, it still dynamically hooks i...

946b37aaaad0d18332671496be8181272e5c670a authored almost 7 years ago by Paul Larsen <[email protected]>
remove annoying restrict message when bot isnt admin

a6ba6f27c71b7d551bfa49985b6ffe7218a0579d authored almost 7 years ago by Paul Larsen <[email protected]>
Add more types + fix a restriction issue for banning users

63398624fd3522fd084b4366d9d87a97c578de53 authored almost 7 years ago by Paul Larsen <[email protected]>
Add types hints to a lot of the codebase in an attempt to reduce future programming errors

e3549bd6084d9e70b6dff35657ca9893fc74eaa5 authored almost 7 years ago by Paul Larsen <[email protected]>
Quit bot if sample config is renamed.

7feaf9a91cf2f1dfafb058df09f18af4c9cbbf5e authored almost 7 years ago by Paul Larsen <[email protected]>
More bad autocorrects

32c8df6e39393ccedce16dab53d8c400bc559870 authored almost 7 years ago by Paul Larsen <[email protected]>
Fix an entity bug, as well as some nonetypes due to unsigned channels being used

aad87bc367a11e3ac6a17d2bc3b4428187ad5424 authored almost 7 years ago by Paul Larsen <[email protected]>
More fiddling with locks, manually revert some previous changes

d58f68d52f570e7d3b1bfcb724426eb0834ed28b authored almost 7 years ago by Paul Larsen <[email protected]>
autocorrect fixing the wrong things, smh

6d1c2a4f1bd903e6aa3c48fcb998170d0c8c03e4 authored almost 7 years ago by Paul Larsen <[email protected]>
add new locks to /locks message

029b4beca9866182f6e63c9a93f0dcb716cd10cd authored almost 7 years ago by Paul Larsen <[email protected]>
Add option to allow stopping bots from being added

Non admins adding a bot will see the bot removed.

execute this to add to db
`alter table permis...

2d6bf7e0ea6aff4f6737c1e7ec4958e35c52a94f authored almost 7 years ago by Paul Larsen <[email protected]>
Add an option to only toggle goodbye messages.

Also, rename to goodbye instead of leave
Run this in psql to add the correct column
`alter table...

8845016da5323c49f43977512a7a4600408eae86 authored almost 7 years ago by Paul Larsen <[email protected]>
Add possible gban exception

f6c2dfa1ce0f180c291070ce184d2e72c348ada7 authored almost 7 years ago by Paul Larsen <[email protected]>
user restriction only really needs to happen when they talk, lets save some network calls

37634f09c8522f68fbfda5f8437d96acb079a436 authored almost 7 years ago by Paul Larsen <[email protected]>
Add a check to ensure user bios arent too long.

22695beb7359852e0ea0e804ff6ba19f7d378c5d authored almost 7 years ago by Paul Larsen <[email protected]>
Ensure that purge and delete get deleted when blue text protection is on

ec318271d5f2f88caa06f46d25a582de2ec79f18 authored almost 7 years ago by Paul Larsen <[email protected]>