Compare commits

...

2 Commits

Author SHA1 Message Date
Xyon db37ee7516 Merge pull request 'Add quick and dirty command to allow admins to make the bot say stuff' (#22) from feature/arbitrary-messaging into main
Badgey Deployment / build (push) Successful in 6m30s Details
Badgey Deployment / deploy (BADGEY) (push) Successful in 10s Details
Badgey Deployment / deploy (M5_COMPUTER) (push) Successful in 8s Details
Reviewed-on: #22
2025-10-05 11:23:42 +00:00
Xyon 71340f9db1 Add quick and dirty command to allow admins to make the bot say stuff 2025-10-05 12:22:04 +01:00
1 changed files with 10 additions and 2 deletions

View File

@ -76,6 +76,14 @@ async fn unignore_channel_for_xp(ctx: ManifoldContext<'_>, channel: serenity::Ch
Ok(())
}
pub fn commands() -> [poise::Command<ManifoldData, ManifoldError>; 9] {
[void_user(), unvoid_user(), airlock_user(), record_chronicle(), security_record(), add_quarantine_channel(), remove_quarantine_channel(), ignore_channel_for_xp(), unignore_channel_for_xp()]
#[poise::command(slash_command, prefix_command, required_permissions = "ADMINISTRATOR")]
async fn send_message(ctx: ManifoldContext<'_>, channel: serenity::ChannelId, message: String) -> ManifoldResult<()> {
channel.say(&ctx, message).await?;
ctx.reply(format!("Sent message to channel <#{channel}>", channel=channel)).await?;
Ok(())
}
pub fn commands() -> [poise::Command<ManifoldData, ManifoldError>; 10] {
[void_user(), unvoid_user(), airlock_user(), record_chronicle(), security_record(), add_quarantine_channel(), remove_quarantine_channel(), ignore_channel_for_xp(), unignore_channel_for_xp(), send_message()]
}