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
c1bc55d456
Add editing feature to custom command
...
Also edit the default if argument isn't recognised.
2021-07-05 16:45:15 +02:00
f8079bdb14
Pad time when only 1 digit
2021-07-04 20:37:10 +02:00
453bf35803
Make code a tiny bit cleaner
2021-07-04 13:17:45 +02:00
9bb9effaf7
Add custom variables to custom message feature
2021-07-04 12:51:26 +02:00
67f674c92b
Move checking if customCommands exists to main cmd
2021-07-03 19:38:34 +02:00
f4467637b0
Remove a console.log line
2021-07-02 20:21:52 +02:00
49a3c50980
Add custom commands
2021-07-02 19:29:15 +02:00
abbee096cc
Declare variable
...
Forgot to declare variable. I don't know why it works without declaring
shit, but javascript is weird. I'll declare it anyways 'cause you never
know what could happen.
2021-07-02 09:22:04 +02:00
e189fd63be
Edit variable name to snakeCase
2021-07-02 08:59:59 +02:00
73b0b5f4ed
Add update command
...
Uses git pull to update to latest commit
2021-07-01 19:20:01 +02:00
dbb3ba41d5
morePresence: Fix error with splice + more
2021-07-01 17:34:51 +02:00