Commit Graph

63 Commits

Author SHA1 Message Date
8606ed0200
Remove .woodpecker.yaml
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-06 11:25:33 -05:00
3efa3fb5a2
Re-enable lint step
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-06 10:46:51 -05:00
139b32094e
Specify number of splits to make for command arguments
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-09-06 10:43:30 -05:00
4068a4ff06
Comment out lint step in Woodpecker CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-06 10:32:57 -05:00
cb9d8e194f
Add .woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-06 10:18:33 -05:00
f3145d8c1d
Fix test name typo 2022-09-06 08:35:44 -05:00
4c5849daae Merge pull request 'Add a command router' (#2) from add-command-router into develop
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: chill9/bb#2
2022-09-06 12:49:18 +00:00
c59c95c47a
Refactor commands to use the router
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2022-09-06 00:02:24 -05:00
0345b1cba1
Add a command router
This will only required one handler for all of the commands
2022-09-06 00:02:24 -05:00
a1d612abc0
Add time zone database to container
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-06 00:02:04 -05:00
0f25b75fe4
Add forgotten imports
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2022-09-05 15:14:42 -05:00
d3b95c693b
Add test for SplitCommandAndArgs
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-05 13:03:47 -05:00
043738668b
Add new implementation of HasCommand 2022-09-05 13:03:02 -05:00
579921a975
s/HasCommand/ContainsCommand/g
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-05 12:54:56 -05:00
4a024e98f2
Shorten 2022-09-04 22:36:14 -05:00
9b33684d60
HasCommand() should detect an invalid command when it has arguments 2022-09-04 08:51:01 -05:00
cd46fcb60d
Add a first test 2022-09-04 08:50:43 -05:00
33bf5eaff2
Add golangci-lint
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-03 03:17:39 -05:00
0e4680eef2
Enable debug mode in docker-compose
All checks were successful
continuous-integration/drone Build is passing
2022-09-02 11:55:15 -05:00
6a389be6a7
Add helper to split the command and arguments
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-01 09:26:23 -05:00
35c72daff4
Trim spaces 2022-09-01 09:25:59 -05:00
fa6f06f639
Fix CI job name
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-01 09:25:13 -05:00
18d568b5c3
Add DealHandler 2022-09-01 09:24:55 -05:00
e4d6a3fdff
Add build to CI
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-01 09:23:21 -05:00
7f69e6e1c2
Add test .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-01 09:11:31 -05:00
53a6efa13e
weather: Use variables for error messages 2022-08-28 18:34:14 -05:00
fbd655b2da
Respect the debug flag in the environment 2022-08-28 09:45:34 -05:00
7d071ebe0b
Move OpenWeatherMap code to a separate struct 2022-08-28 09:44:35 -05:00
af10ef4dc5
Use HasCommand() helper 2022-08-27 09:00:35 -05:00
424b191ebc
Fix HasCommand()
It was not working if the command had an argument
2022-08-26 17:55:51 -05:00
c01db1abf1
Break random.go apart 2022-08-25 10:00:43 -05:00
ac6d30e085
Allow bot to respond to DM's 2022-08-25 08:23:35 -05:00
886a447082
go mod tidy 2022-08-25 07:48:58 -05:00
69aee2e699
Interfaces do not need named parameters 2022-08-24 09:43:46 -05:00
ce689146de
Reorganize packages 2022-08-24 09:06:00 -05:00
6c0000d409
Tidy up main 2022-08-24 08:52:30 -05:00
547063de2e
Move handlers to their own package 2022-08-23 13:25:44 -05:00
435884b61a
Move config to bot package 2022-08-23 11:52:36 -05:00
cf3fece52c
Reaction handler will not add a variable number of reactions 2022-08-22 19:30:56 -05:00
d75a02554d
Bind Discord and OpenWeatherMap tokens to environment variables 2022-08-22 19:29:42 -05:00
d790094399
Ignore bin 2022-08-22 08:05:26 -05:00
39e1153781
Ignore .vscode 2022-08-22 08:04:49 -05:00
f075e2454c
Add Docker Compose file 2022-08-22 08:03:16 -05:00
322a88e0ad
Make reaction handler more shit-posty 2022-08-22 07:59:39 -05:00
0fd921ee28
Make configuration file optional 2022-08-22 07:59:23 -05:00
f8cf68af83
Add entrypoint and CA certificates to Dockerfile 2022-08-22 07:56:18 -05:00
b2f69ed2f7
Add ignored config.go 2022-08-08 00:40:43 -05:00
bbdbe1e926
Add !version, remove !source 2022-08-07 07:17:34 -05:00
1643fef377
Add HasCommand() 2022-08-07 07:12:53 -05:00
b852b02aed
Added !source command 2022-08-05 10:04:04 -05:00