Cucked alt for promote #75

Merged
modulatingforce merged 4 commits from cucked into master 2024-04-09 13:39:35 -04:00

Addressing #70

Recommended Implementation details

  1. Check if the Given Argument is an Existing Chatter
  1. If the call was the alt cucked specifically (rather than regular promote) ,
  • Respond first with uhhh , pause for 1s , then go through promotion process as normal

Plan of Action

  • Code
  • Unit Tests?
  • Live Tests
  • adj getroles command the self involve too
  • clippy & fmt cleanup
Addressing https://git.flake.sh/modulatingforce/forcebot_rs/issues/70 # Recommended Implementation details 1. Check if the Given Argument is an Existing Chatter - [x] use https://docs.rs/twitch-irc/5.0.1/twitch_irc/validate/fn.validate_login.html - [x] If the argument is not known login, target the invoker - [x] ~~ideally, some helper fn as there are other bot commands that may target the invoker~~ - Not required 2. If the call was the alt `cucked` specifically (rather than regular `promote`) , - [x] Respond first with `uhhh` , pause for 1s , then go through promotion process as normal --- # Plan of Action - [x] Code - [x] ~~Unit Tests?~~ - [x] Live Tests - [x] adj getroles command the self involve too - [x] clippy ~~& fmt~~ cleanup
modulatingforce added this to the Prototype 1.0 milestone 2024-04-09 09:03:44 -04:00
modulatingforce self-assigned this 2024-04-09 09:03:44 -04:00
modulatingforce added this to the Forcebot Prototype 1.0 Push project 2024-04-09 09:03:45 -04:00
modulatingforce added the
Kind/Enhancement
Complexity
Basic
labels 2024-04-09 09:04:26 -04:00
modulatingforce changed title from Cucked alt for promote to WIP: Cucked alt for promote 2024-04-09 09:05:41 -04:00
modulatingforce added 1 commit 2024-04-09 10:00:08 -04:00
modulatingforce requested review from HaruYuumei 2024-04-09 10:00:30 -04:00
modulatingforce reviewed 2024-04-09 10:04:45 -04:00
modulatingforce left a comment
Author
Owner

Hi @HaruYuumei

Can you test this branch at some point? Let me know if you have questions

I don't think there's anything to add? (no need to add test commands) . Just making sure if you have issues or questions

My live tests seem to be fine at the moment

Thanks!

Hi @HaruYuumei Can you test this branch at some point? Let me know if you have questions I don't think there's anything to add? (no need to add test commands) . Just making sure if you have issues or questions My live tests seem to be fine at the moment Thanks!
@ -225,0 +264,4 @@
params.clone(),
).await;
sleep(Duration::from_secs_f64(2.0)).await;
Author
Owner

promote BotCommand now has logic to handle the alt cucked or cuck

  1. If a BotAdmin sends the cucked alt command specifically (and not promote), and the targetuser is not a valid user , the promote command will target the BotAdmin

  2. The Bot will go through and funny awkward message workflow in chat before promoting the target user

`promote` `BotCommand` now has logic to handle the alt `cucked` or `cuck` 1. If a `BotAdmin` sends the `cucked` alt command specifically (and not `promote`), and the targetuser is not a valid user , the `promote` command will target the `BotAdmin` 2. The Bot will go through and funny awkward message workflow in chat before promoting the target user
Author
Owner

Haru tested looks good

Haru tested looks good
modulatingforce marked this conversation as resolved
modulatingforce added 2 commits 2024-04-09 12:36:51 -04:00
modulatingforce changed title from WIP: Cucked alt for promote to Cucked alt for promote 2024-04-09 12:37:42 -04:00
modulatingforce changed title from Cucked alt for promote to WIP: Cucked alt for promote 2024-04-09 12:42:00 -04:00
Author
Owner

@notohh Aware something's not working - the CI/CD here didn't trigger , even when I removed WIP. Normally, I should see something per push?

I don't think I see anything wrong. Can you check this?

@notohh Aware something's not working - the CI/CD here didn't trigger , even when I removed WIP. Normally, I should see something per push? I don't think I see anything wrong. Can you check this?
modulatingforce added 1 commit 2024-04-09 13:37:23 -04:00
Merge branch 'master' into cucked
All checks were successful
ci/woodpecker/pr/cargo-checks Pipeline was successful
764a912122
modulatingforce changed title from WIP: Cucked alt for promote to Cucked alt for promote 2024-04-09 13:39:14 -04:00
modulatingforce merged commit 018e8306e4 into master 2024-04-09 13:39:35 -04:00
modulatingforce deleted branch cucked 2024-04-09 13:39:35 -04:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: modulatingforce/forcebot_rs#75
No description provided.