Dragory
cb6a9c2703
Merge #373
2020-08-16 18:58:25 +03:00
Dragory
31a5fb55b8
Remove debug console.log
2020-08-14 01:23:49 +03:00
Dragory
296d1304a7
Reproducible formatters, add full log formatter
...
Format-specific parts of replies, including the role name and
attachments, are now stored in separate columns. This allows us to
store only one version of the actual message body and, by keeping
format-specific data separate, reproduce formatter results regardless
of when they are called. This cleans up code around message formats
significantly and was required to support !edit/!delete properly.
2020-08-14 00:42:32 +03:00
Dragory
37c523cd04
Band-aid fix for import in move.js
2020-08-13 02:36:52 +03:00
Dragory
86a060410f
Apply code style from .eslintrc
2020-08-13 00:08:37 +03:00
Dragory
3002473905
Add !edit and !delete with options (disabled by default)
2020-07-19 14:20:45 +03:00
Dragory
6b8c7e1bdf
Rename config.js to cfg.js
...
So people don't accidentally edit the config source file rather than
their own config file.
2020-07-19 13:36:07 +03:00
Dragory
3723bf788b
Add 'source' to beforeNewThread hooks, call hooks in threads.createNewThreadForUser()
2020-07-15 23:50:30 +03:00
Dragory
3c0352ff09
Add support for hooks. Add beforeNewThread hook. Allow overriding new thread category id in createNewThreadForUser().
2020-07-14 00:13:32 +03:00
Dragory
1382c639a9
Fix error when attempting to unsuspend outside a thread channel
2020-05-26 00:24:35 +03:00
Dragory
d1f939cbc8
ModMail -> Modmail
2020-05-25 23:56:48 +03:00
Dragory
6434066318
Simplify log header
2020-05-25 23:55:11 +03:00
Dragory
c76d422768
Fix error when sending system messages to the user
2020-05-25 11:52:31 +03:00
Dragory
f8ddf97b53
Add verbose and simple options to logs
2020-05-25 01:54:26 +03:00
Dragory
6eb9b973c0
More consistent log formatting. Store DM channel IDs and inbox message IDs with thread messages. Add !dm_channel_id. Add message numbers to the database in preparation for !edit and !delete. Some code reorganisation.
2020-05-25 01:33:10 +03:00
Dark
949a5efdb2
Allow multiple users to do !alert without overriding each other
2020-02-17 20:04:43 +01:00
Brayzure
dcd80aabda
Fix certain auto-reply errors
2020-01-20 23:20:56 +02:00
Dragory
00fe240eb0
Expand multi-line .ini value support
...
The following options now also support multi-line values:
- responseMessage
- closeMessage
- botMentionResponse
- greetingMessage
- accountAgeDeniedMessage
- timeOnServerDeniedMessage
2020-01-19 21:25:10 +02:00
Dragory
5085cf363a
Call plugin functions with an object instead
...
Previously, plugin functions were called with 4 arguments.
These 4 arguments are now part of the passed object instead, making the
plugin system much more scalable in the future.
2019-08-13 20:34:46 +03:00
Dragory
158db3c070
Fix replies without text that include attachments
2019-06-16 22:37:05 +03:00
Dragory
38c7bd83ff
Switch to knub-command-manager instead of Eris's command client. Update sqlite3 for Node.js 12 support.
2019-06-16 22:27:30 +03:00
Dragory
3cf31f37d9
Add pagination to !logs
2019-06-09 20:25:47 +03:00
Dragory
a60515bcc7
Fix !block/unblock time arg without explicit user id
2019-06-09 20:25:21 +03:00
Dragory
1259669c9d
Add support for timed blocks. Add !is_blocked.
2019-06-09 20:04:40 +03:00
Dragory
2d5bf76209
Add support for snippet arguments
2019-06-09 19:17:32 +03:00
Dragory
b9133da4da
Add update notifications
2019-06-09 17:31:17 +03:00
Dragory
18f3da1247
Add guildGreetings config option
2019-06-09 15:56:04 +03:00
Dragory
ae3f3920e3
Ignore account age/time on server requirements when using !newthread
2019-04-15 19:26:14 +03:00
Dragory
22e03d2335
Rename requiredJoinedAt -> requiredTimeOnServer, add support for multiple main guilds for that setting
2019-04-15 19:06:59 +03:00
santiago
f2808c0b04
Add requirement for joinedAt
2019-04-15 10:43:22 -03:00
Dragory
a470b72016
Add attachmentStorage option
2019-03-06 23:31:24 +02:00
Dragory
688ab7ceea
Add support for scheduled !suspend
2019-03-06 21:37:36 +02:00
Dragory
bee147c19d
Allow !loglink in suspended threads
2019-03-06 21:36:17 +02:00
Dragory
188f7543ee
Allow silent scheduled closes. Make close time format stricter (no whitespace).
2019-03-06 21:15:09 +02:00
Dragory
cd3da4c4ec
Add syncPermissionsOnMove config option
2019-03-06 20:50:24 +02:00
Dragory
5e1a1e7e15
Add 'silent' option to !close when closeMessage is specified
2019-02-23 23:32:18 +02:00
Dragory
86bc6fd809
Only delete the reply command if the bot was able to send the reply
2019-02-23 22:55:26 +02:00
Dragory
21d2a7453c
Add allowUserClose option. Fixes #69
2018-09-20 23:31:14 +03:00
Dragory
2f1b51d97a
Add support for sending anonymous snippets. Add snippetPrefixAnon option. Fixes #82
2018-09-20 22:54:47 +03:00
Dragory
55367665e8
Update mime node-mime to 2.3.1
2018-08-08 01:10:38 +03:00
Dragory
7e7bd03798
Fix crash if the close message failed to send when closing a thread
2018-08-08 00:55:03 +03:00
Dragory
ff977b3eea
Gracefully handle web server errors
2018-08-08 00:54:01 +03:00
Jonas Pardon
6f327b7456
Added an optional close message
...
You can assign a value to closeMessage to make the bot DM people when their thread gets closed.
2018-07-05 18:34:12 +02:00
Dragory
445659d592
Fix greetings not being sent after 2.9.0
...
Greetings broke when multi-server support was added.
This commit fixes that.
2018-05-14 19:49:15 +03:00
Miikka
82a89b6e86
modules.move: slightly prioritize categories that start with the search string
2018-04-25 02:25:49 +03:00
Miikka
d6793d5c12
modules.move: fix !move ignoring the last letter of the category name
2018-04-25 02:21:24 +03:00
Dragory
a839372cfe
You can now use !close c as an alias for !close cancel
2018-04-21 16:42:35 +03:00
Dragory
5e1b5112a2
Add !alert
...
Using !alert in a modmail thread will ping you the next time the thread
gets a new reply. Use !alert cancel to cancel.
2018-04-21 16:39:38 +03:00
Dragory
319f6571bc
Add !id
...
The !id command returns the user ID of the current thread. Useful for
getting the user ID on mobile.
2018-04-21 15:41:03 +03:00
Dragory
1fc32f71d0
Fix #67 : errors from privacy settings are now ignored with greetings
2018-04-21 14:31:58 +03:00