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
Pouria Ezzati
299dfcd22c
Merge branch 'develop' of github.com:TheDevs-Network/bot into develop
2017-09-21 23:48:08 +04:30
Pouria Ezzati
1e476d758f
added nowarns command, more configs
2017-09-21 23:47:26 +04:30
Pouria Ezzati
3de638d0f8
Update TODO.md
2017-09-21 18:24:47 +04:30
Pouria Ezzati
afe4505da1
Update TODO.md
2017-09-21 18:24:31 +04:30
Pouria Ezzati
3064149886
minor refactoring for Warns, fixed warns count
2017-09-21 18:20:50 +04:30
Pouria Ezzati
1b9365f5cf
link based on ID, minor warn refactoring
2017-09-21 16:14:54 +04:30
Pouria Ezzati
6739a2f0a0
refactored to be more modular
2017-09-21 13:57:49 +04:30
GingerPlusPlus
5353a1f6e5
Converted .gitignore to LF from CR LF
2017-09-20 22:53:13 +02:00
GingerPlusPlus
1f346b4f0d
Removed notion of approved bot from todo
...
Bot is approved when it's added by an admin.
2017-09-20 22:46:22 +02:00
GingerPlusPlus
a0d556a0f3
Added README, closes #13
2017-09-20 22:45:40 +02:00
GingerPlusPlus
dad60a9dd1
Added start script
2017-09-20 22:44:10 +02:00
GingerPlusPlus
448f90caf7
Renamed config.json to config.example.json
2017-09-20 22:23:42 +02:00
Pouria Ezzati
fd399a45b6
removed init cli, revised Warn DB
2017-09-20 23:17:00 +04:30
Pouria Ezzati
7309b5e3f5
Update TODO.md
2017-09-09 13:07:57 +04:30