Commit Graph

294 Commits

Author SHA1 Message Date
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
d022bac73e added env_logger 2020-10-17 23:56:19 +01:00
fd84a57e82 improvements to todo interface, now using todos and todoc as with old versionn 2020-10-17 15:21:00 +01:00
87a7c69b76 improving the todo interface. switched up some of the dp.py include_strs to use cargo_manifest_dir 2020-10-17 02:10:36 +01:00
d10bf7ede6 insert events on deleting a reminder 2020-10-14 16:08:26 +01:00
11d12469fc warn when avatar path not real 2020-10-14 11:52:09 +01:00
dca2b37fb0 made webhook avatar configurable 2020-10-14 11:31:18 +01:00
254c9b04e9 added allowed_mentions to say_lines 2020-10-14 00:19:41 +01:00
55e388b01a dp.py now statically built into the output binary 2020-10-13 14:53:44 +01:00
ceac7be083 moved around the consts so that default prefix env var isnt being read into the framework. made theme color configurable 2020-10-13 14:35:13 +01:00
cfdcab4f01 added timezone and language fallbacks to local 2020-10-13 13:58:34 +01:00
c8ab8e66e3 improved logging of errors in from_user fn 2020-10-13 13:48:47 +01:00
b2111616e8 changed the insert into dm channels into an insert ignore 2020-10-13 13:42:15 +01:00
f32b142c81 fix for permission checking 2020-10-13 11:36:20 +01:00
03e5578dcb made strings table name configurable 2020-10-12 23:17:47 +01:00
84aa7c3278 readded local_language config option 2020-10-12 22:43:02 +01:00
c9fd2fea81 ran rustfmt over project. cleared up a couple of clippy things 2020-10-12 21:01:27 +01:00
88596fb399 padded readme out. made python location configurable. made ignore_bots configurable. replaced max_message_length with serenity's provided constant 2020-10-12 19:12:33 +01:00
3756e462e0 fixed strings in todo commands. improved clarity of main.rs. improved the signature of RegexFramework::new() 2020-10-12 18:37:14 +01:00
09a7608429 changed permission chekc to be more manual since built in one isnt working 2020-10-11 18:56:27 +01:00
7cfe62d18f moved LOCAL_TIMEZONE to consts.rs 2020-10-11 18:06:14 +01:00
47ad3f3822 added count to del. changed inner joins to left outers. moved all consts and lazies into consts.rs. more formatting fixes 2020-10-11 17:41:26 +01:00
1f41343e2e fixed a lot of message formatting that had been ignored 2020-10-11 01:42:19 +01:00
1afa04d61c fixed uid generation 2020-10-10 17:44:12 +01:00
d3f28ce539 added better formatting to del and look outputs. removed a now useless model 2020-10-10 17:29:32 +01:00
8d5ce121d3 updated del command to display formatted time 2020-10-07 12:23:50 +01:00
2d6d9da70a functions to display displacements 2020-10-06 12:02:09 +01:00
jude
db9b0ef2b1 fixed some messages not sending 2020-10-04 16:17:13 +01:00
jude
836b77d14e if only setting one reminder with natural, show errors in messages. more refactor 2020-10-03 17:31:23 +01:00
jude
6db489189d check subscriptions and extract every clause from natural 2020-10-01 22:55:28 +01:00
jude
74f1c7aada turned say_lines into a method of channelid 2020-10-01 18:07:27 +01:00
jude
1813a00eac alias paging messages to not surpass 2048 characters 2020-09-28 16:11:27 +01:00
jude
5ad143511e cleared up remaining warnings. messed with prefix so that is it now configured by the program + env vars rather than the DB + magic strings 2020-09-28 13:42:20 +01:00
jude
4f3789aeed added help for natural command. added prefix_from_id for guilddata 2020-09-27 22:57:55 +01:00
jude
8a0588b04e natural command stuff 2020-09-26 22:23:41 +01:00