Commit graph

94 commits

Author SHA1 Message Date
7fef3eefce
Show custom message when showing timer 2023-06-30 19:17:23 +02:00
dd3d21749e
Remove discriminator from custom commands 2023-06-29 17:09:08 +02:00
b0e9f88879
Fix timer show command failing 2023-06-01 12:30:57 +02:00
d41b28ec91
Use an sqlite3 database for timer feature
There were some other small edits as well, mostly formatting or better
logging in certain functions
2023-06-01 12:01:03 +02:00
354d4cd098 Add timer show command
This command shows information about the timer with the ID you have as
an argument.
2023-05-09 10:09:10 +02:00
5317d59e9a
Add the ability to delete timers 2023-04-29 17:26:10 +02:00
2313c59a3a
Rewrite timer & Separate createTimer into own file 2023-04-28 23:02:32 +02:00
7bda48d4a4
Split up album and artist on userinfo (foobar2k)
Closes #32
2023-04-16 15:05:46 +02:00
b7205da1dd
Add ability to use weeks in timer command
Closes #33
2023-04-16 14:04:31 +02:00
96f94713d7 Temp commit
working on #28
2022-09-13 14:22:58 +02:00
88d5237680 Add option to use timestamp on timer command 2022-09-05 18:06:33 +02:00
4ab84dd6d4
Fix timer being sent multiple times
I used array.pop instead of array.splice for some reason. I thought it
would work, but I guess I didn't read MDN thoroughly enough when I
first implemented this function.
2022-07-01 00:32:55 +02:00
4d87294196
Catch setactivity so bot doesn't crash 2022-06-29 16:23:57 +02:00
5feaa89583
Return NaN in default case 2022-06-11 21:34:07 +02:00
76da183b67
Add days as option in timer command
+ Remove useless comments
2022-06-10 20:19:51 +02:00
513f62a1cf
Parse to float instead of parse to int 2022-06-09 23:21:55 +02:00
5bb6acc9e4
Write to timers.json after reminder has passed 2022-06-09 19:25:58 +02:00
6bbc8efcdd
Fix comparison 2022-06-09 19:23:45 +02:00
0c0e4d40c3
Move require line to inside the function 2022-06-09 19:09:26 +02:00
04f39582a4
Rewrite timer command to use JSON
* Rewrite parseTime to use seconds instead of ms
	*  Move parseTime to timer subdirectory

* Implement checkTimer and sendTimerReminder.
2022-06-09 18:44:30 +02:00
a4b75b0161
Remove parseTime 2022-06-08 16:22:13 +02:00
92787eb2d1
Fix plural bug + change ternaries to ifs 2022-06-03 15:49:27 +02:00
e676730f0c
Add time parser for timer command
* Fix grammar
* Fix countdown off by 4 seconds
2022-05-17 15:24:55 +02:00
52e832101f
Edit variable names to make more sense 2022-04-29 14:17:27 +02:00
8093998cda
Change uptime to show hours if it exceeds an hour 2022-04-28 05:00:34 +02:00
52a15e2c19
Add uptime as a presence text choice for the bot
idk what the fuck I'm doing anymore so I'm just adding random useless
shit that no one neeeds. I'm the only fucker using this shitty bot and
I'm probably not even gonna be using this shitty feature myself...
2022-04-27 11:46:40 +02:00
4adc97d6ae
Change forEach loop to filter 2022-04-10 22:22:39 +02:00
4e41a035ed
Move custom command files into own directory 2022-04-05 16:39:29 +02:00
e6bf4045ed
Add rename custom command feature 2022-04-04 17:13:31 +02:00
837b6ea13e
Fix updatePresence thing 2022-01-14 19:17:28 +01:00
3dadfd5340
Change format of presence thing 2021-08-31 18:25:40 +02:00
607ae7d853
Use a for loop instead of being an idiot 2021-08-31 18:20:25 +02:00
b8b272c099 Fix typo in loadserverprefixes console.log 2021-08-31 07:55:53 +02:00
d91b2c748c
Fix presence updating without restarting bot
Use a discord collection instead of reading from a config file
2021-08-30 23:20:25 +02:00
5923d9ba56
morePresence: Add check if details is null 2021-08-12 18:35:29 +02:00
1ea4892167
Update to make it work on discord.js v13
* Use intents
* Use messageCreate instead of message
* Update sending embeds for v13
* Fix getNickname for v13
* Fix user presence
* guild.member to guild.members.cache.get
* Fix userinfo (+ some other minor changes)
2021-08-09 20:15:03 +02:00
2ac01e2ce1
Refactor randomNumber function 2021-08-07 23:50:58 +02:00
423a4095bf
Fix plural when multiple modules are added 2021-08-06 19:03:05 +02:00
41734e7412
Remove whitespace 2021-07-24 19:44:12 +02:00
f448c63801
Make util use subdirfiles command on reload 2021-07-22 09:37:07 +02:00
047ba95311
Get files from top directory + rename file
* Generalise variable names

* Change require stuff to the new thing
2021-07-22 09:26:45 +02:00
b0543a8eb6
Fix issue with reloading commands 2021-07-18 11:52:20 +02:00
SileNce5k
e7cdd425d1
Split commands into subdirectories
* Move command files into directories

* Edit relative paths

* Update gitignore

* Finish support for commands in subdir

* Split up getCommandFiles into own function

* Add support for subdirs on help command
2021-07-18 11:24:46 +02:00
a442c5cbe8
add 'added' to the end of sendText string 2021-07-10 17:37:37 +02:00
263576c671
Change sendtext when adding custom command 2021-07-10 17:34:25 +02:00
7710d53e71
Actually make bot owner able to delete any command 2021-07-09 20:28:16 +02:00
b872e88f85
Allow bot owner to delete custom commands 2021-07-09 20:22:38 +02:00
bf1a7985aa
Refactor presence stuff
* Create new function that sets presence which replaces with correct
  variables
* Probably some more shit I don't remember
2021-07-09 18:10:49 +02:00
9da4eebe89
Add guilds as custom variable for bot presence 2021-07-08 18:33:20 +02:00
855daefa4d
Move guild count into own function 2021-07-08 12:06:31 +02:00