Commit Graph

328 Commits

Author SHA1 Message Date
jude
878ea11502 graceful shutdown 2022-03-21 23:11:52 +00:00
jude
d0d2d50966 create reminders :) 2022-03-19 17:41:34 +00:00
jude
6ae2353c92 add distinct identifying names. log errors in run_macro 2022-02-20 12:19:39 +00:00
jude
06c4deeaa9 component models 2022-02-19 22:11:21 +00:00
jude
afc376c44f everything except component model actions 2022-02-19 18:21:11 +00:00
jude
84ee7e77c5 2nd attempt at doing poise stuff 2022-02-19 14:32:03 +00:00
jude
620f054703 extracted event handler. removed custom sharding code. extracted util functions 2022-02-19 13:28:24 +00:00
jude
cb471c52f3 optionally dont run web/postman 2022-02-19 12:45:33 +00:00
jude
49974b7153 moved dashboard crate into here 2022-02-11 17:44:08 +00:00
jude
a3844dde9e moved postman into separate crate 2022-02-06 15:47:59 +00:00
d62c8c95c2 support months in sender 2022-02-01 23:41:28 +00:00
68ee42f244 Merge remote-tracking branch 'origin/next' into next
# Conflicts:
#	Cargo.lock
2022-02-01 23:04:44 +00:00
fad28faabb interval months/interval seconds 2022-02-01 23:04:31 +00:00
e5ab99f67b removed some log messages. rustfmt 2021-12-21 13:46:10 +00:00
e47715917e integrate reminder sender 2021-12-20 13:48:18 +00:00
4f9eb58c16 made the missing perms send a message (since the webhook responses bypass perms) 2021-11-18 21:05:49 +00:00
c953bc0cd3 various todo fixes 2021-11-15 08:09:48 +00:00
610779a293 added mention blocker to everything 2021-11-15 07:51:38 +00:00
ebd1efa990 added check for guild only commands 2021-11-13 22:30:18 +00:00
5230101a8d beta0 2021-11-13 14:12:37 +00:00
d8f42c1b25 fixed an issue with utc time. removed intents 2021-11-07 13:23:41 +00:00
23c6b3869e patreon gated repeat argument 2021-11-06 23:30:38 +00:00
a21f518b21 removed framework impl 2021-11-02 20:19:29 +00:00
f1bfc11160 removed all remaining restriction code 2021-11-02 20:10:10 +00:00
72228911f2 Readded some guild data code. fixed some weird cases with macro command. removed restrict command. changed db to be 'as it was'. removed execution limiters since commands are quite heavily ratelimited anyway 2021-10-30 21:02:11 +01:00
db7cca6296 added to the migration file somewhat. added some checks to components 2021-10-26 22:13:51 +01:00
e36e718f28 removed all guild data related code 2021-10-26 21:10:14 +01:00
44debf93c5 removed dead code 2021-10-26 20:54:22 +01:00
9b54fba5e5 Revert "turned pager into a single type"
This reverts commit 4490f19c
2021-10-26 20:11:19 +01:00
6cf660c7ee macro stuff 2021-10-16 19:18:16 +01:00
4490f19c04 turned pager into a single type 2021-10-13 17:23:50 +01:00
a362a24cfc changed a bunch of types so the macro run command works nicely 2021-10-13 16:37:15 +01:00
903daf65e6 ... 2021-10-12 21:52:43 +01:00
b310e99085 todo pager and selector 2021-10-11 21:19:08 +01:00
ebabe0e85a todo stuff 2021-10-02 22:54:34 +01:00
6b5d6ae288 fixed del pager. todo stuff 2021-09-27 17:34:13 +01:00
379e488f7a subcommand group syntax 2021-09-24 12:55:35 +01:00
d84d7ab62b added functionality for reusable hook functions that will execute on commands 2021-09-22 21:12:29 +01:00
a0974795e1 ... 2021-09-18 13:40:30 +01:00
a9c91bee93 pager improvements. deleting working 2021-09-16 18:30:16 +01:00
b2207e308a optimized packing slightly. restrict interactions 2021-09-16 15:42:50 +01:00
3c1eeed92f look command pager 2021-09-16 14:48:29 +01:00
395a8481f1 typing 2021-09-12 16:59:19 +01:00
bae0433bd9 framework now supports subcommands. timer cmd working 2021-09-12 16:09:57 +01:00
3e547861ea components 2021-09-11 20:40:58 +01:00
9b5333dc87 more commands. fixed an issue with text only commands 2021-09-11 00:14:23 +01:00
471948bed3 linked everything together 2021-09-10 18:09:25 +01:00
c148cdf556 removed language_manager.rs. framework reworked for slash commands. updated info commands for new framework 2021-09-06 13:46:16 +01:00
98aed91d21 revert some usages of discord builtin timestamp formatting 2021-09-02 23:59:30 +01:00
40630c0014 restructured all the reminder creation stuff into builders 2021-09-02 23:38:12 +01:00
85a8ae625d interactions to delete a newly created reminder 2021-07-17 22:53:00 +01:00
43bbcb3fe0 cleared up clippy lints 2021-07-17 17:00:47 +01:00
1556318d07 turned models into module 2021-07-16 21:28:51 +01:00
ea2b0f4b0a removed useless thing 2021-07-16 18:23:43 +01:00
f02c04b313 use discord timestamp formatting 2021-07-16 18:22:39 +01:00
320060b1bd functions for signing stuff 2021-07-16 18:18:35 +01:00
bef33c6dac show user who created reminder 2021-07-10 18:24:43 +01:00
7bcb3c4a70 fixed oversight where users could set DM reminders across servers 2021-07-10 13:25:12 +01:00
2e153cffab removed some stuff from perm checks that is no longer needed 2021-06-27 17:15:50 +01:00
540f120d7d lang command uses interaction buttons 2021-06-27 16:55:59 +01:00
59ffb505dc timezone command uses interaction buttons 2021-06-27 16:31:54 +01:00
507075d9d4 fixed the migration script since mysql is stupid 2021-06-22 16:46:42 +01:00
85659f05aa migrated reminder commands to new database code 2021-06-03 17:43:28 +01:00
1a09f026c9 made ratelimiting only apply when a command is actually done 2021-05-25 22:43:35 +01:00
b31843c478 check time to kill users that get stuck in executing state 2021-05-23 10:59:06 +01:00
9109250fe8 fix for alias 2021-05-13 20:20:53 +01:00
a0da4dcf00 ratelimit commands 2021-05-13 18:50:22 +01:00
0a9624d12d guild data caching 2021-04-12 22:33:02 +01:00
72a976dea8 look command now shows interval 2021-03-27 13:12:08 +00:00
c76a456af5 added cargo feature to cache guild prefixes. dont query language until necessary in framework 2021-03-24 13:10:57 +00:00
1473ac3bcf natural's help output is now unified with the help command. removed an unconstructed enum variant. added countdown to help menu 2021-03-21 14:39:54 +00:00
4eae563a76 countdown command 2021-03-21 14:18:35 +00:00
65c59ca889 fixed remind command having too many spaces 2021-03-14 10:27:30 +00:00
7b6464d5a4 help command now no longer relies on help_strings const
timeparser updated to work with partially specified times
2021-02-23 13:45:25 +00:00
3075e34fe1 1.4.6- natural arguments can now be on new lines and work properly 2021-02-21 12:26:49 +00:00
93e372e53e fix for dev error showing instead of other errors. show shard number on help pages. cache guilds on join 2021-02-14 14:10:01 +00:00
e9e321ebb1 fix for guilds not being cached 2021-02-12 11:44:52 +00:00
ff56ab3c83 fix for oom 2021-02-11 23:30:44 +00:00
74874c6e99 timezones are now queried at launch rather than every time the timezone command is used 2021-01-19 12:19:20 +00:00
9003beb1bb fix multiline reminders. disable unused gateways if dm disabled 2021-01-19 12:01:14 +00:00
88976dc244 made up for the missing forward check 2021-01-18 19:32:19 +00:00
43ba899c7a removed forward check bc it doesnt work. added an environment variable to configure if dm responses should be enabled 2021-01-17 00:39:48 +00:00
f80c8cba50 modified regex to forward-check on every 2021-01-14 19:47:19 +00:00
4d7b957a91 readded patreon checks to natural 2021-01-14 18:00:24 +00:00
04232162f2 revamped natural to use a regex to match commands. natural now supports until parameter 2021-01-14 17:56:57 +00:00
702743c108 reverted previous changes. dependency upgrade 2021-01-13 19:19:55 +00:00
e866171ea7 dependency upd 2021-01-09 18:25:50 +00:00
769cb78141 removed async_trait from deps to use reexport from serenity 2021-01-07 21:11:02 +00:00
3598973fac expiring reminders working 2021-01-04 18:33:28 +00:00
99c4a23bf0 updated serenity to latest current. interval and remind commands are now operationally identical using one regex. interval accepts an optional third parameter which is an expiration point 2021-01-03 14:48:18 +00:00
c7c3b14c2d fixed <<here>> not mentioning 2020-12-29 22:44:11 +00:00
55c7740cef meridian 12 now works on timezone command 2020-12-28 21:58:58 +00:00
2db405866f fix interval/donor message not showing 2020-12-28 21:31:52 +00:00
684661af42 fix guild ids 2020-12-22 14:44:45 +00:00
392e1bb65e create guild in database 2020-12-22 14:28:18 +00:00
bfc48a986d added length check to timer creation 2020-12-20 14:36:20 +00:00
632d01f503 removed useless fields from todo. removed debug trait 2020-12-19 22:14:16 +00:00
ec04c40cc8 deduplication 2020-12-18 17:41:36 +00:00
ca68b45ebe cleared up imports, split command help into separate function, postponed some awaits 2020-12-18 12:37:05 +00:00
26825ff4e5 removed some duped code 2020-12-18 11:46:22 +00:00
fd4acc4b9d updated deps. improved restrict output to be nicer in appearance. 2020-12-17 19:59:02 +00:00
c43dde09f0 added meridian to help menu 2020-12-17 17:23:57 +00:00
aebb8529b6 ported all changes to natural command also 2020-12-16 22:35:51 +00:00
e002984986 allow more reminder content inc. attachments, tts 2020-12-16 19:20:46 +00:00
6311099cc6 meridian command for switching from 12/24 format 2020-12-16 16:53:13 +00:00
44d06e4298 silent mentioning for roles in reminders 2020-12-15 23:03:41 +00:00
6402a9b705 removed look all, fixed look #channel with other switches. added a changelog to be posted to discord 2020-12-15 22:26:42 +00:00
9bb969c642 show the discord error in place of the webhook error. removed an unwrap from interval 2020-12-12 18:56:50 +00:00
20a3c134c0 changed 1+ to 0+ whitespace after mention for natural to flow nicer 2020-12-07 12:36:33 +00:00
167a5a404f help command rework 2020-11-30 21:55:34 +00:00
268fcab8c5 help command rework started 2020-11-30 16:06:05 +00:00
d8aaf92335 working on improvements to reminder command still 2020-11-29 12:49:50 +00:00
3879c83085 rework of remind command. updated a dep. fixed an issue in parsing absolute times 2020-11-29 00:36:42 +00:00
55437b76eb reactions are permission gated properly so they work with different subsets of permissions 2020-11-23 16:04:42 +00:00
3c1fe1f091 can now use reactions on lang command 2020-11-23 14:11:57 +00:00
06d13ec810 facelift 2020-11-23 00:06:46 +00:00
d3f9fa6d7b doing a facelift for timezone command 2020-11-22 23:58:46 +00:00
012d90e832 timezone_of method for more lazy-storage. fix for del command raising issues if 0 is written. fix for get_language not recognising 2020-11-22 12:09:57 +00:00
d8bf0240e4 removed all remaining instances of UserData::response. languagemanager now loads from string compiled into executable. languagemanager falls back properly. removed unnecessary param from language_of 2020-11-22 01:31:50 +00:00
6a7491d094 new language manager that loads strings from compiled json file 2020-11-21 16:48:20 +00:00
1927d381ab bumped sqlx -> 0.4, bumped reminder_rs -> 1.2.3, added a more descriptive message for not enough permissions. removed STRINGS_TABLE environment variable 2020-11-20 16:37:39 +00:00
19754d3bcc fixed blacklist strings. fixed blacklist silent failing on occasion 2020-11-19 21:31:31 +00:00
38e2767f99 fixed $look time. fixed pause message 2020-11-10 22:55:29 +00:00
4bc7b36fd1 $look has new flag all which views reminders from entire guild. reminders now support basic substitution: <<id>> for a user, or <<everyone>> and <<here>> for the everyone and here tags respectively 2020-11-09 13:47:11 +00:00
2a637ee9c9 added a tolerance to the natural processor so that 'now' works again 2020-11-07 00:44:36 +00:00
5d4bed30ae switched inner join for left join 2020-11-04 21:56:09 +00:00
43824bc374 show embed description if message not there 2020-11-04 21:09:15 +00:00
41e5f32374 patch for times on del output being bad. patch for look output not being ordered. patch for user todo list being restricted 2020-10-29 20:25:37 +00:00
afc06bda9f fixed formatting for reminders that are about to send in $look. fixed multiline reminders on natural that have a location or interval provided 2020-10-28 09:19:10 +00:00
047795810e fixed removing todo list items 2020-10-27 22:53:05 +00:00
db56118bfb changed to how the guild query works so that errors are more useful and it doesnt do dumb shit 2020-10-27 17:35:01 +00:00
75653a3e88 changed guild name to be optional 2020-10-27 17:29:40 +00:00
a380c1f139 fix for bulk setting reminders 2020-10-27 12:11:05 +00:00
b08848d272 create guild data if not present. added a temp method to reattach channels to their guild data 2020-10-27 11:37:55 +00:00
d7b0d18444 fix for DM commands 2020-10-26 20:56:54 +00:00
fa17978add fix for a number of commands that had managable permissions not being managable 2020-10-26 19:50:51 +00:00
84e4952752 moved the member-getter to as late as possible 2020-10-26 12:33:38 +00:00
3e490bb5c4 removed standard_framework completely 2020-10-26 11:10:00 +00:00
19b3eb067e fix for multiline commands 2020-10-26 10:16:38 +00:00
dd621a022a fix for the del command not working properly 2020-10-25 17:39:39 +00:00
a7fa722518 use serenity from my repo. other minor improvements 2020-10-25 11:19:21 +00:00
2e9b06faf6 corrected guild counts for shards 2020-10-24 12:52:49 +01:00
775037fc6e rc.8. mostly changes to the framework to make better use of db models, and to send strings from the db rather than those that are coded in. 2020-10-23 23:04:37 +01:00
8e567bf10b bumped to rc.7. embed avatar inside executable. nudge now outputs the current nudge when ran with no arguments 2020-10-23 22:23:43 +01:00
7aba128ad6 posting guild counts separately for shards. format default_prefix into info message 2020-10-23 12:14:29 +01:00
749abf7898 added case insensitivity to commands 2020-10-22 10:31:47 +01:00
d50390c4a5 fix to unspecified language or timezone 2020-10-20 20:37:36 +01:00
c90bb1fc07 bumped cargo version. tagged info commands with pkg name and version 2020-10-20 09:13:55 +01:00
c0be97115c be explicit with columns in some sql queries 2020-10-20 00:31:56 +01:00
25a637665c respond to some events and dbl api interactions 2020-10-18 17:26:07 +01:00