Commit graph

405 commits

Author SHA1 Message Date
4963048bbc
Update discord.js to 14.4.0 2023-12-07 12:37:12 +01:00
2c8be96c1b
Attempt to fix weather command crashing when website is down 2023-12-07 12:23:26 +01:00
5c80c5cd05
Move right parenthesis to the correct place 2023-12-07 12:22:15 +01:00
f5714cb90d
Fix weather command properly....... 2023-12-06 17:49:34 +01:00
3927b7905b
Use timeout in getWeather 2023-12-06 17:40:56 +01:00
c4f526d37f
Fix weather command crashing when website is down 2023-12-06 17:26:03 +01:00
95702b6ea9
Say: Do not remove the original command 2023-12-06 13:36:43 +01:00
a82b62340e
Fix say command failing when permissions are missing
Bot tries to delete the say message of the author, but if the bot does
not have permissions to delete messages, it will crash the bot.
2023-12-06 13:28:46 +01:00
dcbf3617a3
Have the fahrenheit temperature in parenthesis 2023-12-05 11:02:57 +01:00
563c43724b
Add log for when there is a non 404 or 200 code 2023-12-04 18:02:06 +01:00
ecc162549e
Use replace instead of splitting for fahrenheit
Didn't know replace was a thing, so I did it in a kinda of shitty way
before. Shouldn't be much difference except for the code being more
understandable.
2023-12-04 16:01:57 +01:00
d8649ff943
Fix crash on weather command with invalid location 2023-12-04 15:47:07 +01:00
d1903c27e7
Fix comma in weather output 2023-12-03 21:19:07 +01:00
b0188483ac
Add weather command 2023-12-03 21:12:21 +01:00
0853f97e99
Use underscores for parseTime numbers 2023-11-19 15:46:55 +01:00
a06221d275
Add error message if send command fails 2023-08-09 09:20:36 +02:00
845f415e5a
Remove devbot branch from njsscan 2023-07-26 23:53:34 +02:00
bb1e668e10
Fix no message on timer delete
Fixes #66
2023-07-26 23:47:32 +02:00
5970699061
Remove logging 2023-07-17 20:22:06 +02:00
dependabot[bot]
41d41c71c3 Bump semver from 6.3.0 to 6.3.1
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-15 00:12:38 +02:00
7fef3eefce
Show custom message when showing timer 2023-06-30 19:17:23 +02:00
SileNce5k
5c2314936f
Create njsscan.yml 2023-06-30 18:35:56 +02:00
dependabot[bot]
f9430b05b7 Bump semver from 7.5.1 to 7.5.3
Bumps [semver](https://github.com/npm/node-semver) from 7.5.1 to 7.5.3.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.5.1...v7.5.3)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-29 17:30:33 +02:00
dd3d21749e
Remove discriminator from custom commands 2023-06-29 17:09:08 +02:00
90fafebf74
Fix discriminator showing if zero 2023-06-29 17:06:42 +02:00
80b813ad14
Fix bot crashing when no message is provided
closes #59
2023-06-29 16:57:39 +02:00
fecd6877ea
Rewrite timers.js to use database 2023-06-02 11:15:47 +02:00
b0e9f88879
Fix timer show command failing 2023-06-01 12:30:57 +02:00
3dd47c1294
Add missing break to switch statement 2023-06-01 12:28:11 +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
a098ab6616
Show timer message on timers command 2023-05-20 23:33:09 +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
7aa1f43f29
Timers command shows timer ID 2023-04-29 17:20:40 +02:00
2313c59a3a
Rewrite timer & Separate createTimer into own file 2023-04-28 23:02:32 +02:00
8df6244363
Add an identifier to each timer
Closes #24
2023-04-16 19:05:46 +02:00
501a78b7c9
Remove comment 2023-04-16 18:23:44 +02:00
998955ed79
Fix netload not working if there is no whitelist
Closes #20
2023-04-16 15:31:02 +02:00
7bda48d4a4
Split up album and artist on userinfo (foobar2k)
Closes #32
2023-04-16 15:05:46 +02:00
2968079ad8
Merge branch 'devbot' 2023-04-16 14:40:15 +02:00
bbaff2b8c5
Merge branch 'master' into devbot 2023-04-16 14:09:31 +02:00
b7205da1dd
Add ability to use weeks in timer command
Closes #33
2023-04-16 14:04:31 +02:00
2015344caf
Fix formatting on initial timer reply
Fixes #27
2023-04-16 13:57:29 +02:00
dependabot[bot]
7cff0c8e75
Bump qs and express (#29)
Bumps [qs](https://github.com/ljharb/qs) to 6.11.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `qs` from 6.7.0 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.7.0...v6.11.0)

Updates `express` from 4.17.1 to 4.18.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: SileNce5k <39550188+SileNce5k@users.noreply.github.com>
2023-04-10 05:00:02 +02:00
dependabot[bot]
639b866598
Bump express from 4.17.1 to 4.17.3 (#30)
Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.17.3.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.17.3)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 04:06:11 +02:00
96f94713d7 Temp commit
working on #28
2022-09-13 14:22:58 +02:00
94b9aaf216
Fix formatting on initial timer reply
Fixes #27
2022-09-11 21:35:47 +02:00
88d5237680 Add option to use timestamp on timer command 2022-09-05 18:06:33 +02:00
6f7ec05dd0
Send date/time to when the timer is up 2022-09-04 12:42:39 +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