Skip to content

Commit

Permalink
Deprecation of remainder, notifications, roles, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Jul 21, 2024
1 parent 36bce44 commit efa141a
Show file tree
Hide file tree
Showing 50 changed files with 25 additions and 4,601 deletions.
522 changes: 0 additions & 522 deletions sushii-2/src/commands/feeds/add.rs

This file was deleted.

117 changes: 0 additions & 117 deletions sushii-2/src/commands/feeds/delete.rs

This file was deleted.

68 changes: 0 additions & 68 deletions sushii-2/src/commands/feeds/list.rs

This file was deleted.

12 changes: 0 additions & 12 deletions sushii-2/src/commands/feeds/mod.rs

This file was deleted.

1 change: 0 additions & 1 deletion sushii-2/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use serenity::framework::standard::macros::group;

pub mod feeds;
pub mod guild;
pub mod help;
pub mod lastfm;
Expand Down
4 changes: 1 addition & 3 deletions sushii-2/src/commands/moderation/cases/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ use serenity::framework::standard::{macros::command, Args, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;

use sushii_model::model::sql::ModLogEntry;

#[command]
#[only_in("guild")]
#[required_permissions("BAN_MEMBERS")]
#[aliases("clearcase", "casedelete", "uncase")]
async fn deletecase(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
async fn deletecase(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </uncase:1075265021610823700> now :)")
.await?;
Expand Down
9 changes: 1 addition & 8 deletions sushii-2/src/commands/moderation/cases/history.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
use chrono::Utc;
use serenity::framework::standard::{macros::command, Args, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;
use serenity::utils::parse_username;
use std::collections::HashMap;
use std::fmt::Write;

use crate::model::sql::ModLogEntry;
use crate::utils::duration::format_duration;

#[command]
#[only_in("guild")]
#[required_permissions("BAN_MEMBERS")]
async fn history(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
async fn history(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </history:996259097441738763> now :)")
.await?;
Expand Down
2 changes: 1 addition & 1 deletion sushii-2/src/commands/moderation/cases/kick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serenity::prelude::*;
#[command]
#[only_in("guild")]
#[required_permissions("BAN_MEMBERS")]
async fn kick(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
async fn kick(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </kick:996259097202671644> now :)")
.await?;
Expand Down
4 changes: 2 additions & 2 deletions sushii-2/src/commands/moderation/cases/mute.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use serenity::framework::standard::{macros::command, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;
use std::fmt::Write;

use crate::model::sql::*;



#[command]
#[only_in("guild")]
Expand Down
2 changes: 1 addition & 1 deletion sushii-2/src/commands/moderation/cases/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serenity::prelude::*;
#[command]
#[only_in("guild")]
#[required_permissions("BAN_MEMBERS")]
async fn note(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
async fn note(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </note:1017270490634670110> now :)")
.await?;
Expand Down
2 changes: 1 addition & 1 deletion sushii-2/src/commands/moderation/cases/warn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serenity::prelude::*;
#[command]
#[only_in("guild")]
#[required_permissions("BAN_MEMBERS")]
async fn warn(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
async fn warn(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </warn:996259097202671646> now :)")
.await?;
Expand Down
4 changes: 2 additions & 2 deletions sushii-2/src/commands/moderation/channel.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use serenity::framework::standard::{macros::command, Args, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;
use serenity::utils::parse_channel;


#[command]
#[aliases("sm")]
#[required_permissions("MANAGE_GUILD")]
async fn slowmode(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
async fn slowmode(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </slowmode:1016583377379397684> now :)")
.await?;
Expand Down
2 changes: 1 addition & 1 deletion sushii-2/src/commands/moderation/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serenity::prelude::*;
#[command]
#[only_in("guild")]
#[required_permissions("BAN_MEMBERS")]
async fn lookup(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
async fn lookup(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </lookup:1117669298442338334> now :)")
.await?;
Expand Down
4 changes: 2 additions & 2 deletions sushii-2/src/commands/notifications/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use serenity::framework::standard::{macros::command, Args, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;

use crate::model::sql::*;


#[command]
#[aliases("a", "new")]
#[only_in("guild")]
async fn add(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
async fn add(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </notification add:996259097441738764> now :)")
.await?;
Expand Down
4 changes: 2 additions & 2 deletions sushii-2/src/commands/notifications/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use serenity::framework::standard::{macros::command, Args, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;

use crate::model::sql::*;


#[command]
#[aliases("d", "del")]
#[only_in("guild")]
async fn delete(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
async fn delete(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
msg.channel_id
.say(&ctx.http, "Please use </notification delete:996259097441738764> now :)")
.await?;
Expand Down
4 changes: 2 additions & 2 deletions sushii-2/src/commands/notifications/list.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use serenity::framework::standard::{macros::command, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;
use std::fmt::Write;

use crate::model::sql::*;



#[command]
async fn list(ctx: &Context, msg: &Message) -> CommandResult {
Expand Down
Loading

0 comments on commit efa141a

Please sign in to comment.