Commit graph

113 commits

Author SHA1 Message Date
27ec24b7d4
fm: Show which last.fm username the top tracks are from 2024-03-07 12:57:08 +01:00
4a67153fb9
fmtt: Set weekly as the default time period 2024-03-07 12:43:34 +01:00
3ed4714457
fmtt: fix time period not working 2024-03-07 12:40:56 +01:00
3c7d0a6c28
fm: Add the possibility to specify period 2024-03-07 12:35:58 +01:00
02b60c31b4
Remove some logging 2024-03-07 11:48:45 +01:00
51e810264c
FM: Add a toptracks feature 2024-03-07 11:27:32 +01:00
53358531e5
Split getFmUsername into own function
This also fixes the bug that happens when a user tries the default fm
command and it crashes the bot.
2024-03-07 10:48:11 +01:00
09d9a28b19
Rename displayCurrentScrobble to getCurrentScrobble 2024-03-04 15:05:12 +01:00
b861d943a6
fm command defaults to displaying the current scrobble 2024-03-04 12:47:13 +01:00
8c02dc5517
Add fm set username command
Beginning of the command. Can't do anything other than setting and
updating your lastfm username.
2024-03-04 12:10:02 +01:00
bdc08b3153
Improve the timer reminder message 2024-03-03 19:12:41 +01:00
2c8be96c1b
Attempt to fix weather command crashing when website is down 2023-12-07 12:23:26 +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
563c43724b
Add log for when there is a non 404 or 200 code 2023-12-04 18:02:06 +01:00
d8649ff943
Fix crash on weather command with invalid location 2023-12-04 15:47: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
bb1e668e10
Fix no message on timer delete
Fixes #66
2023-07-26 23:47:32 +02:00
7fef3eefce
Show custom message when showing timer 2023-06-30 19:17:23 +02:00
dd3d21749e
Remove discriminator from custom commands 2023-06-29 17:09:08 +02:00
b0e9f88879
Fix timer show command failing 2023-06-01 12:30:57 +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
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
2313c59a3a
Rewrite timer & Separate createTimer into own file 2023-04-28 23:02:32 +02:00
7bda48d4a4
Split up album and artist on userinfo (foobar2k)
Closes #32
2023-04-16 15:05:46 +02:00
b7205da1dd
Add ability to use weeks in timer command
Closes #33
2023-04-16 14:04:31 +02:00
96f94713d7 Temp commit
working on #28
2022-09-13 14:22:58 +02:00
88d5237680 Add option to use timestamp on timer command 2022-09-05 18:06:33 +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
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