Commit graph

426 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
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
4d87294196
Catch setactivity so bot doesn't crash 2022-06-29 16:23:57 +02:00
d0af91dda4
Add response for if you don't have any timers 2022-06-17 17:43:25 +02:00
d115ba214b
Fix netload example failing 2022-06-12 18:57:48 +02:00
2e8ce2a142
Reset to origin/master instead of master 2022-06-12 14:52:57 +02:00
8bd28f045a
Remove subtraction on reminderTime 2022-06-12 14:50:13 +02:00
a34f08a1a2
Fix gitreset 2022-06-12 12:01:41 +02:00
5feaa89583
Return NaN in default case 2022-06-11 21:34:07 +02:00
64409c890a
Change order of morehelp in timer command 2022-06-10 23:32:47 +02:00
76da183b67
Add days as option in timer command
+ Remove useless comments
2022-06-10 20:19:51 +02:00
664598681f
Round formatted number 2022-06-09 23:26:34 +02:00
513f62a1cf
Parse to float instead of parse to int 2022-06-09 23:21:55 +02:00
7bcb76cffb
Fix formatting error on timers cmd 2022-06-09 23:07:22 +02:00
fd9237cf47
Add proper formatting on timers 2022-06-09 23:04:03 +02:00
a681b6e102
Forgot to change name of command 2022-06-09 23:02:33 +02:00
390273321b
Add timers command to check your own timers 2022-06-09 23:01:37 +02:00
1fe63da38e
Subtract 10 on reminder pre-message 2022-06-09 19:31:30 +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
065acf5ec3
Fix wrong path 2022-06-09 19:17:52 +02:00
011f203815
Fix time is not defined error 2022-06-09 19:14:49 +02:00
0c0e4d40c3
Move require line to inside the function 2022-06-09 19:09:26 +02:00
8a69212515
Write to timers.json after adding new timer 2022-06-09 19:06:48 +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
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
891edff394
Improve moreHelp on timer command 2022-05-17 15:30:17 +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
5f4a0056d7
Fix thing when first arg is NaN 2022-05-15 01:27:40 +02:00