Martin
f91f6ef4f5
Change deprecated .tg Telegraf alias for .telegram ( #152 )
...
* Swap deprecated .tg for .telegram
2022-05-31 17:17:45 +02:00
Wojciech Pawlik
db5e0f22f7
Add lrm
2020-06-15 14:45:55 +02:00
Wojciech Pawlik
93538a6d93
Don't try unbanning outside supergroups ( #122 )
2020-05-25 22:49:53 +02:00
Wojciech Pawlik
765a8dd5a5
Add adminLog chat, fixes #96
2020-05-14 23:18:25 +02:00
Wojciech Pawlik
c93f27bcf6
Avoid forEach
2020-05-13 22:00:49 +02:00
Wojciech Pawlik
f15b22d1f0
Normalize html formatting
2020-05-13 15:11:43 +02:00
Wojciech Pawlik
9ad99e6c82
Handle expiry in /unwarn
2020-05-08 21:31:02 +02:00
Wojciech Pawlik
3205d04e74
Add user ID to ban/warn message, fixes #105
2020-05-08 14:08:11 +02:00
Thomas Rory Gummerson
758b924436
Type ctx
2020-03-13 22:00:30 +01:00
Thomas Rory Gummerson
f018464482
Type config file
2020-03-12 19:42:53 +01:00
GingerPlusPlus
16f303622b
Allow to remove any warn by specifying its date
2019-05-31 13:36:37 +02:00
GingerPlusPlus
b83e8bf42f
Improve and consistently use escapeHtml
2019-04-06 20:58:56 +02:00
GingerPlusPlus
f5367457b8
Replace messages/checkUsername with utils/parse ( #97 )
2019-01-28 21:46:29 +01:00
Muthu Kumar
eeb571226d
[feature] Schedule deletion of warn and ban messages ( #95 )
2018-11-20 06:17:30 +00:00
GingerPlusPlus
53b37e9dfa
Change warn schema to array of objects ( #47 )
2018-04-18 21:47:35 +02:00
GingerPlusPlus
5a4002e7d4
Don't assume config file extension
...
Even if we want to enforce one extension,
doing it in requires scattered across the whole project
doesn't sound like a good idea (don't repeat yourself).
This commit also enables .js configs,
so I added that to .gitignore.
I'll document it when we settle on default config format.
Why was .json everywhere in the first place?
I thought it was neccessary in some older versions of Node
to be able to require a .json file.
2017-11-24 12:31:47 +01:00
GingerPlusPlus
631f5732a0
Notify unbanned person in /unwarn and /nowarns too
2017-11-19 13:08:11 +01:00
GingerPlusPlus
900611fb75
Display numberOfWarnsToBan instead of 3 in /unwarn
2017-11-17 18:02:03 +01:00
GingerPlusPlus
f1215a995f
[Bugfix] /unwarn no longer kicks
...
Unbanning (`unbanChatMember`) group member kicks him.
Interesting, but quirky and undocumented!
2017-11-17 17:46:40 +01:00
GingerPlusPlus
ff2e78c92b
[eslint] function-paren-newline: error, multiline
2017-10-31 23:08:22 +01:00
GingerPlusPlus
337f6e2183
Added and used scheduleDeletion
...
...only where I was certain that whis was a good idea,
perhaps it could be useful in more places.
2017-10-31 22:36:18 +01:00
GingerPlusPlus
9e728e33c7
/unwarn unbans
2017-10-28 20:24:13 +02:00
Pouria Ezzati
36535d4a6b
refactoring on line if statements returns
2017-10-06 16:40:49 +03:30
Pouria Ezzati
672fd562f3
refactoring, created messages folder and added context state
2017-10-06 16:34:23 +03:30
Pouria Ezzati
0bf92d9ff2
fixed unwarn count
2017-10-04 20:58:12 +03:30
Pouria Ezzati
7f27a30297
merged warn db into user db & improved db methods
2017-09-27 12:34:26 +03:30
Pouria Ezzati
1219654065
merged ban & admin DBs into user DB
2017-09-27 00:11:20 +03:30
Pouria Ezzati
d6c76952de
commands now work with mention
2017-09-25 12:40:04 +03:30
Pouria Ezzati
39145d35be
commands now tell which admin did it
2017-09-24 23:24:34 +03:30
Pouria Ezzati
1036ad5f88
added styling format for messages
2017-09-24 14:28:31 +03:30
Pouria Ezzati
34f34420bf
refactored commands and middlewared into their folders
2017-09-23 21:40:58 +03:30