Commit graph

68 commits

Author SHA1 Message Date
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
46fe7b8532
morePresence: Add support for vscode 2021-06-30 17:35:28 +02:00
1bb6cf6f60
Rename loadNetModueles for consistency 2021-06-30 16:54:36 +02:00
1c56c7889f
Fix morePresence: Apple Music showing wrong info 2021-06-30 16:49:34 +02:00
86edaa8218
Add getNickname function 2021-06-28 18:57:54 +02:00
7a78de8939
morePresence: Add Custom Status condition 2021-06-28 18:33:53 +02:00
e9a93c9279
Add morePresence, and make userinfo.js use it
To get more details about stuff. Only foobar2000, apple music and
spotify for now
2021-06-28 17:58:54 +02:00
a1986c12a2
Add convertDateToISOString.js
Also make getCreationDate.js and getJoinDate.js use this function
2021-06-28 17:56:16 +02:00
a1dc9d1bc7
Fix getCreationDate
Forgot I had to do user.user.createdAt instead of just user.createdAt.
2021-06-28 13:35:06 +02:00
8b92667315
Add leading zeros and add one to month
Forgot about the fucking padding and month not being correct because
fuck javascript. Hopefully I didn't forget about anything else.
2021-06-27 20:14:46 +02:00
49e6eaed11
Rewrite createdate and joindate gets
Update botinfo to work with new getCreationDate
Update userinfo to work with new getCreationDate
Update userinfo to work with new getJoinDate
2021-06-27 19:59:02 +02:00
edbf942051
Save presence to config file 2021-06-27 13:45:06 +02:00
8d130b1519
Fix error when data dir exists but config doesn't 2021-06-27 02:20:46 +02:00
4b9f8e3687
Fix trying to load from wrong location 2021-06-22 16:23:49 +02:00
f6c4f19a74
Prettify json files 2021-06-19 15:19:26 +02:00
6371d43358
Create initial config automatically
Automatically create a config and refer users to the readme for further
instructions.
2021-06-19 12:48:02 +02:00