|
39fec05ff4
|
Refactored handlers and command handlers
|
2022-09-24 21:43:10 -05:00 |
|
|
7a0c90a5f7
|
Move config to a separate package
|
2022-09-22 22:53:40 -05:00 |
|
|
b8b994157e
|
Refactor RPS/RPSLS
|
2022-09-18 14:57:15 -05:00 |
|
|
6139db889d
|
Refactor RPS/RPSLS
|
2022-09-15 09:32:37 -05:00 |
|
|
12372522e9
|
Add rock, paper, scissors, lizard, spock
|
2022-09-15 09:32:01 -05:00 |
|
|
a3137e5276
|
Refactor rock, paper, scissors
|
2022-09-14 08:34:51 -05:00 |
|
|
7b3368eea4
|
Unmarshal the weather summary
|
2022-09-13 08:56:33 -05:00 |
|
|
5a141be534
|
Add rock, paper, scissors command
|
2022-09-09 10:23:03 -05:00 |
|
|
49000133d8
|
Return empty args slice is the argument is an empty string
|
2022-09-09 10:22:08 -05:00 |
|
|
756aaf2379
|
Add more default emojis to the reaction handler
|
2022-09-09 10:21:34 -05:00 |
|
|
6bd4744745
|
Return errors to main
|
2022-09-09 10:21:07 -05:00 |
|
|
211f963b87
|
Update dependencies
|
2022-09-08 02:43:54 -05:00 |
|
|
04aef2f0e4
|
Reload the config file on SIGHUP
|
2022-09-08 02:35:39 -05:00 |
|
|
9221a218b9
|
Log config file being loaded
|
2022-09-08 02:35:01 -05:00 |
|
|
a551a10e59
|
Shorten an error check
|
2022-09-08 02:28:58 -05:00 |
|
|
d8a28fb211
|
Add method to load the config
|
2022-09-08 02:26:47 -05:00 |
|
|
2ac0df3494
|
Binding to the DEBUG environment variable is not necessary
|
2022-09-08 02:23:38 -05:00 |
|
|
a151b08142
|
Move flags to init()
|
2022-09-08 01:45:16 -05:00 |
|
|
7ff6e74148
|
Remove weather handler config struct
|
2022-09-08 01:01:02 -05:00 |
|
|
b419cfde69
|
Fix workaround for optional config file with Viper
There was a false error reported when the configuration file was found
|
2022-09-08 00:59:10 -05:00 |
|
|
534b3e5fcd
|
Bind config file in Docker
|
2022-09-08 00:57:10 -05:00 |
|
|
446ac616bf
|
Fix lint errors
continuous-integration/drone/push Build is passing
|
2022-09-07 00:54:58 -05:00 |
|
|
e2032942ca
|
Add handlers to Bot struct
|
2022-09-07 00:29:28 -05:00 |
|
|
31cf6f6c9a
|
Move code out of main.go
|
2022-09-06 21:48:29 -05:00 |
|
|
5651df37ef
|
Move command functions under a bot struct
|
2022-09-06 21:33:59 -05:00 |
|
|
8606ed0200
|
Remove .woodpecker.yaml
continuous-integration/drone/push Build is failing
|
2022-09-06 11:25:33 -05:00 |
|
|
3efa3fb5a2
|
Re-enable lint step
ci/woodpecker/push/woodpecker Pipeline failed
|
2022-09-06 10:46:51 -05:00 |
|
|
139b32094e
|
Specify number of splits to make for command arguments
ci/woodpecker/push/woodpecker Pipeline was successful
|
2022-09-06 10:43:30 -05:00 |
|
|
4068a4ff06
|
Comment out lint step in Woodpecker CI
ci/woodpecker/push/woodpecker Pipeline failed
|
2022-09-06 10:32:57 -05:00 |
|
|
cb9d8e194f
|
Add .woodpecker.yml
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
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
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
continuous-integration/drone/push Build is failing
|
2022-09-06 00:02:04 -05:00 |
|
|
0f25b75fe4
|
Add forgotten imports
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
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
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
continuous-integration/drone/push Build is failing
|
2022-09-03 03:17:39 -05:00 |
|
|
0e4680eef2
|
Enable debug mode in docker-compose
continuous-integration/drone Build is passing
|
2022-09-02 11:55:15 -05:00 |
|
|
6a389be6a7
|
Add helper to split the command and arguments
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
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
continuous-integration/drone/push Build is failing
|
2022-09-01 09:23:21 -05:00 |
|
|
7f69e6e1c2
|
Add test .drone.yml
continuous-integration/drone/push Build is passing
|
2022-09-01 09:11:31 -05:00 |
|