GingerPlusPlus
d0d4e1bc0c
Added groupsInlineKyeboard to config
...
It allows to define inline keyboard to be displayed
under output of /groups.
2017-09-25 15:38:03 +02:00
Pouria Ezzati
7c94ca45f0
renamed group store to match others
2017-09-25 16:17:18 +03:30
Pouria Ezzati
40265a1074
/groups now shows groups with link
2017-09-25 16:14:29 +03:30
Pouria Ezzati
02a9b6ff78
Update TODO.md
2017-09-25 12:40:50 +03:30
Pouria Ezzati
d6c76952de
commands now work with mention
2017-09-25 12:40:04 +03:30
Pouria Ezzati
a270210248
added error handling for db methods
2017-09-25 09:56:45 +03:30
GingerPlusPlus
ac6780f4f5
Added /groups
2017-09-24 23:23:36 +02:00
GingerPlusPlus
0b5aa1b02f
Export escapeHtml
2017-09-24 23:23:13 +02:00
GingerPlusPlus
36706e7a5d
Notify unbanned people
2017-09-24 22:42:39 +02:00
Pouria Ezzati
49397a16f7
Update TODO.md
2017-09-24 23:29:00 +03:30
Pouria Ezzati
39145d35be
commands now tell which admin did it
2017-09-24 23:24:34 +03:30
Pouria Ezzati
dffe3cc9af
corrected group db name to match others
2017-09-24 22:23:56 +03:30
Pouria Ezzati
730fd3c3c3
Updated todo
2017-09-24 22:18:30 +03:30
Pouria Ezzati
4455541afe
getwarns and nowarns now check if there are warnings
2017-09-24 22:17:39 +03:30
GingerPlusPlus
50c6f76968
Added custom commands to TODO
2017-09-24 20:38:52 +02:00
GingerPlusPlus
20c0da34d8
Minor README improvements
2017-09-24 18:40:20 +02:00
GingerPlusPlus
3e344ceca2
console.error unhandled errors
2017-09-24 18:34:32 +02:00
GingerPlusPlus
3ffdee8c89
Added /start and /help into TODO
2017-09-24 18:11:50 +02:00
GingerPlusPlus
178545e7b7
Added /staff command
2017-09-24 18:05:16 +02:00
GingerPlusPlus
7d52880b83
Store first_name in admin store
2017-09-24 18:04:30 +02:00
GingerPlusPlus
797b01733b
[Bugfix] Corrected middleware order
...
Put addedToGroupHandler before leaveUnmanagedHandler.
Without that, it's impossible for the master to add the bot to a group,
because it leaves immiedetly, before checking who added him.
2017-09-24 15:28:43 +02:00
GingerPlusPlus
6593c52acf
Always use first_name in link, and escape it
...
I'm disappointed that you added that to TODO
instead of resolving it immiedetly, @poeti8.
Also added escapeHtml, so the bot doesn't break
when someone has something html-like in first_name.
2017-09-24 14:55:26 +02:00
Pouria Ezzati
623e957da0
Update TODO.md
2017-09-24 15:08:59 +03:30
Pouria Ezzati
61697d0679
Update TODO.md
2017-09-24 14:34:09 +03:30
Pouria Ezzati
14f2164e5d
added styling format for messages
2017-09-24 14:32:27 +03:30
Pouria Ezzati
1036ad5f88
added styling format for messages
2017-09-24 14:28:31 +03:30
Pouria Ezzati
5cb22a6b5c
banned users can't be admin. /admin clears warns
2017-09-24 14:28:31 +03:30
GingerPlusPlus
53fdf39a4e
Moved report handler to the right place, updated TODO
2017-09-23 21:33:20 +02:00
GingerPlusPlus
a7b7172ed9
Added /report command
...
Closes #6
2017-09-23 20:57:32 +02:00
GingerPlusPlus
845b85e472
Added allAdmins function into admin store
2017-09-23 20:56:07 +02:00
Pouria Ezzati
ba9caaeae5
updated eslint rules for camelCase and comma-dangle
2017-09-23 21:56:16 +03:30
Pouria Ezzati
0b8af0cbb3
added next() on message middleware
2017-09-23 21:52:58 +03:30
Pouria Ezzati
d525b4a37b
added try...catch on some async/awaits
2017-09-23 21:49:23 +03:30
Pouria Ezzati
34f34420bf
refactored commands and middlewared into their folders
2017-09-23 21:40:58 +03:30
GingerPlusPlus
22fadcde92
Call kickChatMember in all groups upon ban
2017-09-23 19:08:17 +02:00
Pouria Ezzati
d24587fc35
Update TODO.md
2017-09-23 16:47:51 +03:30
Pouria Ezzati
f712ae93b5
Update TODO.md
2017-09-23 16:47:31 +03:30
GingerPlusPlus
43cd7ab285
/unban calls unbanChatMember in each group
2017-09-23 14:35:45 +02:00
Pouria Ezzati
e99d857df6
fixed DEBUG env variable
2017-09-23 15:39:25 +03:30
Pouria Ezzati
b8a74176ba
fixed ban command
2017-09-23 15:39:12 +03:30
GingerPlusPlus
d5e3e1f0b5
Made sure names of handlers end with "handler"
2017-09-22 19:47:38 +02:00
GingerPlusPlus
e0279e3a95
Renamed newChatMemberHandler into antibotHandler
2017-09-22 19:46:00 +02:00
GingerPlusPlus
9e3e9c4672
Rewritten antibot and removing join / leave msgs
2017-09-22 19:24:36 +02:00
GingerPlusPlus
ea97b2fb31
Bot manages group only if added there by master
...
It leaves with a message otherwise.
2017-09-22 17:14:25 +02:00
GingerPlusPlus
8c9457cd8c
Added groups store
2017-09-22 17:14:25 +02:00
Pouria Ezzati
19fffbd80d
Update TODO.md
2017-09-22 16:52:21 +03:30
Pouria Ezzati
332af7bb05
Update TODO.md
2017-09-22 15:54:18 +03:30
Pouria Ezzati
24234a686a
User DB and new commands: ban, unban, unadmin
2017-09-22 15:52:27 +03:30
GingerPlusPlus
5759e08326
Bot knows its username
...
It's available as ctx.me
2017-09-21 23:47:51 +02:00
Pouria Ezzati
ff8beb5153
Update TODO.md
2017-09-21 23:49:53 +04:30