Commit Graph

36 Commits (main)

Author SHA1 Message Date
Joey Hines 34cb744091
Removed imgur support
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2023-12-08 20:15:32 -07:00
Joey Hines 6dd12fd561
Added vampires roles and buffed spy/agent 2023-12-08 19:43:45 -07:00
Joey Hines f86ef6fc21
Fixed pings and debugs in messages
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
+ Also added more logging to ensure spy is working okay
+ clippy + fmt
2023-02-15 17:06:27 -07:00
Joey Hines 6ebf9e0ad2
Fixed issue with automated messages and spying
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
+ Discord blocks "System Messages" from usersnames because of course it does
2023-02-14 18:46:19 -07:00
Joey Hines fa7d78c272
Added new roles
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2023-01-28 13:36:22 -07:00
Joey Hines b91223d6ed
Trying to fix woodpecker pipeline
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2023-01-09 18:51:38 -07:00
Joey Hines ae7d9cf996
More cleanup for new theme
+ Clippy + fmt
2023-01-08 21:00:59 -07:00
Joey Hines 66442efae6
Bit of refactoring and cleanup
+ Split command groups into their own files
+ Upped version
+ Clippy + fmt
2023-01-08 20:13:31 -07:00
Joey Hines 275f5c9305
Added basic role handling
+ Games now have a config for which roles they have
+ Roles are assigned at game start
+ Roles don't function within the bot, except the spy
+ Added a spy listener
+ Clippy + fmt
2023-01-08 16:23:50 -07:00
Joey Hines 7af3bab486
Added basic listener
+ Only support chat events now
+ Created a listener for host message snooping
+ Clippy + fmt
2023-01-08 13:44:11 -07:00
Joey Hines 4b7570b24c Merge pull request 'msg_refactor' (#4) from msg_refactor into main
Reviewed-on: #4
2023-01-06 05:07:03 +00:00
Joey Hines 9a91a16e0d Message router refactor
+ Created the WoxlfMessage struct to streamline interface
+ Message tasks are now joined at once instead of sequentially
+ Clippy + fmt
2023-01-06 05:07:03 +00:00
Joey Hines 3c219f5bff Initial refactor of message handling
+ Split all message handling into message_router.rs
+ Added whisper command
+ Updated serenity version
+ Fmt, but clippy failing
2023-01-06 05:07:03 +00:00
Joey Hines 2aec084712
Keep dead player channels
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
+ Instead of deleting channels, players are marked dead so they can't interact with the game
+ Players are listed as dead in the $players command
+ All player channels are cleaned up at the end of the game
+ clippy + fmt
2022-06-24 21:15:06 -06:00
Joey Hines 0f70ac5f51
Ensure profile pics are random
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
+ Clippy + fmt
2022-06-19 14:55:52 -06:00
Joey Hines dbaa622eb7
Fix typo
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2022-05-29 13:15:09 -06:00
Joey Hines 3daa20db9a
Added test_theme command
ci/woodpecker/push/woodpecker Pipeline was successful Details
+ Allows you to see all the messages in a theme easily
+ Clippy + fmt
2022-05-29 13:14:30 -06:00
Joey Hines 45b368fd11
Add woodpecker config
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2022-05-28 16:36:11 -06:00
Joey Hines 230930a23c
Added config for themes. Fixes #1
* WOxlf now supports a number of game themes
 * Each theme can have custom messages, profile pics, phrasing, etc
 * Messages are defined as tera templates
* Couple small improvements
+ Clippy + fmt
2022-05-28 16:31:41 -06:00
Joey Hines 2e5c102887
Block users from using external emoji (Fixes #2)
+ Scan incoming messages for emoji, if they are from an external server they are blocked
+ clippy + fmt
2022-05-15 11:54:42 -06:00
Joey Hines ea0be5c708
Added profile pic support + fixed an issue with webhook serailization
+ Added imgur module to handle interacting with the imgur api
+ Users now get a random profile pic from an imgur album
+ Switched to using webhook ids instead of storing the full webhook in toml, serenity does not seem to like the toml deserialization
2022-03-20 17:42:50 -06:00
Joey Hines 71b8bc6e20
Initial Webhook Support
+ Host messages still come through the bot instead of webhooks
+ Each player channel gets one webhook that all messages come through
+ The username is set per message
+ Currently, profile pics are the default
+ clippy + fmt
2022-03-20 11:42:04 -06:00
Joey Hines 673d5b56f0
Moved event_handler to its own module and cleaned up readme 2022-03-20 09:46:40 -06:00
Joey Hines 0baf273237
Improved message handling
+ Messages broadcast to all channels are now all started in "parallel"
+ This should improve message times to all channels, especially when there are many players
+ Start of the logic needed for having multiple deputy bots and one chief bot
+ clippy + fmt
2022-03-19 21:37:05 -06:00
Joey Hines 0796f0be21
General cleanup after the first game
+ Randomized codename order obscuring players more
+ Added better error handling code
+ Support hour + minute time increments
+ Refactored layout to be more clear
+ clippy + fmt
2022-03-19 21:12:38 -06:00
Joey Hines 5dd1b5daa7
Using discord uuids as player ids and fixed issue with add_time 2022-03-15 18:29:06 -06:00
Joey Hines 935e0bb3f3
Bold player names 2022-03-15 16:08:01 -06:00
Joey Hines a72fb8a899
$players command returns the discord username for the host
+ clippy + fmt
2022-03-13 16:09:05 -06:00
Joey Hines e4b98b7796
Added help messages 2022-03-10 19:48:42 -07:00
Joey Hines 23f5a86013
Updated prefix and added help command 2022-03-07 19:56:12 -07:00
Joey Hines 4ff36d3fe8
Fixed players not being able to send images 2022-03-06 14:38:23 -07:00
Joey Hines 98bc997ff3
Added !players command 2022-03-06 14:18:54 -07:00
Joey Hines 086bd1051e
Give players read perms for their private channel 2022-03-06 13:25:18 -07:00
Joey Hines 10fa6f6906
Added remaining bare minimum functionality
+ Added phase handling and player termination
+ Fixed an issue with some commands not saving game data
+ Added game_status command
+ Updated readme with commands and new features
+ clippy + fmt
2022-03-06 12:48:11 -07:00
Joey Hines e72d603149
Added commands + persistence
+ `say`: used by the host to speak in the game chat
+ `end`: ends the game and cleans up
+ `broadcast`: Send an important game message that that is pinned in each channel
+ Persistent allows games to continue across bot restarts
+ clippy + fmt
2022-03-06 10:03:49 -07:00
Joey Hines fd878c3721
Initial commit 2022-03-05 14:35:02 -07:00