Skip to content

Commit

Permalink
Add /pat command
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinegb committed Apr 12, 2024
1 parent b10e8c2 commit 651cc0a
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,36 @@ rp_command!(
("BAH- {a} JUST K-KILLED THEMSELVES??? NOOOOOOOOOO {e}", FloofEmoji::FloofScared),
);

rp_command!(
pat,
"Pat Head",
"Let them know that they're a good being :>",
"Good being in question",
[
(
"{a} gave {b} a little pat on the head {e}",
FloofEmoji::FloofPat,
),
(
"{a} wants {b} to know they are a good being by giving them a pat on the head {e}",
FloofEmoji::FloofPat,
),
("{b} got pat on the head by {a} {e}", FloofEmoji::FloofPat),
(
"{b} has been selected to receive a soothing pat on the head from {a} {e}",
FloofEmoji::FloofPat,
),
],
(
"Awawawawa {a} gave me a pat pat on the head {e}",
FloofEmoji::FloofPat,
),
(
"Aw, {a} pat themselves on the head, won't someone else give them a little pat? {e}",
FloofEmoji::FloofPlead,
),
);

#[shuttle_runtime::main]
async fn main(#[shuttle_runtime::Secrets] secret_store: SecretStore) -> ShuttleSerenity {
// Get the discord token set in `Secrets.toml`
Expand All @@ -305,7 +335,7 @@ async fn main(#[shuttle_runtime::Secrets] secret_store: SecretStore) -> ShuttleS
.context("'DISCORD_TOKEN' was not found")?;
let framework = poise::Framework::builder()
.options(poise::FrameworkOptions {
commands: vec![boop(), gnaw(), bite(), meow(), murder()],
commands: vec![boop(), gnaw(), bite(), meow(), murder(), pat()],
event_handler: |ctx, event, _framework, _data| {
Box::pin(async move {
if let FullEvent::Message { new_message } = event {
Expand Down

0 comments on commit 651cc0a

Please sign in to comment.