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
f7c36eefbd
Move config/data files into own directory
2021-04-21 19:27:29 +02:00
db04c07c60
Convert spaces to tabs
2021-04-21 18:36:52 +02:00
SileNce5k
d636b39d7a
Add ability to upload modules to the bot via discord
...
* Remove unused dependencies
* Add basic downloading of modules
* Add valid-url as dependency
* Add loading/reloading of netmodules
* Add support for help on netmodules
* Add whitelist for netmodules
2021-03-15 23:29:49 +01:00
a2cc442477
Remove console.log debugging
2021-03-13 04:31:55 +01:00
3b75fe165d
Add random number command
2021-03-13 04:04:02 +01:00
Ozzy
4717de1712
Add per server prefix ( #7 )
...
* Add ability to load server prefix
* Add ability to set prefix for a server
* Create serverPrefixes.json file if not found
2021-03-13 03:57:53 +01:00
86b3e57b4a
Delete cache of required files in util/
...
Addresses #5 .
2021-03-10 23:48:41 +01:00
0bfeb8d3b6
Remove TODO
...
Not gonna implement reloading a specific module. I don't really see it
being worth it as it doesn't take a long time to just reload everything.
2021-03-10 21:10:55 +01:00
2594c5a60c
Change var to let on all variables
...
I've heard it's apparently best practice so I guess why not.
I don't know if it actually matters though.
2021-03-09 14:55:52 +01:00
984c86ef53
Remove commented out code
2021-03-08 21:17:04 +01:00
7b7054e9f5
Remove console.log debugging
2021-03-08 20:35:50 +01:00
acd2e2a502
Add support for reloading modules(commands) without restarting the bot.
2021-03-08 20:34:31 +01:00
0b6e92a75f
fix issue with month returning 1 less than expected
2021-02-19 22:12:10 +01:00
88b10d0ffd
update parsemention
2021-02-19 21:02:00 +01:00
4514b45ab8
Cleaned up code so it looks a bit better even though it still looks like shit lol
2021-02-19 12:26:39 +01:00