Commit graph

46 commits

Author SHA1 Message Date
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
8df6244363
Add an identifier to each timer
Closes #24
2023-04-16 19:05:46 +02:00
879c27b799
Create timers.json if it doesn't exist 2022-06-09 19:06:21 +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
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
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
792569455e
Remove unneeded require line 2021-07-13 01:02:48 +02:00
ce1936df62
Change all vars to const or let 2021-07-13 01:02:22 +02:00
2dab176290
Split up onReady into own function
1
2021-07-10 13:02:41 +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
1e91d4ddef
Fix presence not setting correctly when <prefix> 2021-07-02 20:30:01 +02:00
1bb6cf6f60
Rename loadNetModueles for consistency 2021-06-30 16:54:36 +02:00
ca4ffab803
Clear screen when bot is ready 2021-06-28 16:04:40 +02:00
0d5502bc92
Set presence on bot startup 2021-06-27 13:50:19 +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
4630cefd47
Split up server.js and message handling 2021-06-19 12:47:18 +02:00
86d97622a8
Indent code after if statement 2021-06-14 20:25:14 +02:00
30710ade0b
Refactor three if statements into one if statement 2021-05-24 16:47:51 +02:00
0bd6e4d076
Remove require fs line 2021-05-24 16:42:33 +02:00
f7c36eefbd
Move config/data files into own directory 2021-04-21 19:27:29 +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
912c6350d9
Change let to const 2021-03-13 16:03:36 +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
eefb3cd7f6
Add check for login message
Check if enableLoginMessage is set to true before attempting to send a
message.
2021-03-11 03:16:07 +01:00
0b5156721d
Add support for admin/owner only commands #3 2021-03-11 02:47:53 +01:00
ec456a9b32
Add online message
When the bot comes online, it will send a specified message to a
specified channel. Both specified in config.json
2021-03-11 00:14:49 +01:00
c51a4fa976
Pass objects on command.execute
Pass objects instead of using a switch statement.
Now I don't have to restart the bot whenever I add a new command
that needs specific arguments other than 'message'.
2021-03-09 18:50:27 +01:00
564500869e
Ignore DMs 2021-03-09 18:22:24 +01:00
489d365eb8
Add pfp command
Doesn't work properly yet. Most likely because of parseMention, but I am too lazy to fix that shit right now.
2021-03-09 14:42:22 +01:00
7a9deac608
Add uptime command 2021-03-09 01:59:35 +01:00
acd2e2a502
Add support for reloading modules(commands) without restarting the bot. 2021-03-08 20:34:31 +01:00
2e64fa7bd6
Add command 2021-03-01 19:36:52 +01:00
cfdee13040
console log error and divider on same line 2021-02-23 15:14:56 +01:00
df8e879475
add divider to more easily know what the latest error is 2021-02-19 22:33:36 +01:00
f0c5e23720
small changes in server.js 2021-02-19 22:15:22 +01:00
41088e06bd
small changes 2021-02-17 21:17:49 +01:00
d7cde39553
removed a line that I don't remember typing 2021-02-16 02:22:54 +01:00
586cd2f5f4
formatting 2021-02-16 02:06:17 +01:00
268ef88332
Changed if/else block to switch case instead for better readability 2021-02-16 02:04:45 +01:00
23f3a61fa1
sets activity 2021-02-14 20:58:14 +01:00
a6ce102e05
added emoji command 2021-02-14 20:07:21 +01:00
05b96f7eb6
removed unnecessary elseif 2021-02-14 20:02:04 +01:00
c0b52e6bba
add botinfo 2021-02-14 13:00:27 +01:00
dd1b4fd21a
final fix for say command hopefully 2021-02-14 12:09:35 +01:00
ae1f1eac43
added help and say commands 2021-02-14 11:54:07 +01:00