Skip to content

Commit

Permalink
reply
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Apr 29, 2023
1 parent d8a0c29 commit a56b6e4
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions getwvkeysbot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@
import discord
from discord.ext import commands

from getwvkeysbot.config import (ADMIN_ROLES, ADMIN_USERS, BOT_PREFIX,
BOT_TOKEN, DEVELOPMENT_GUILD, GUILD_ID,
INTERROGATION_CHANNEL_ID, IS_DEVELOPMENT,
LOG_CHANNEL_ID, SCRIPT_DEV_ROLE_ID,
SCRIPTS_CHANNEL_ID, SUS_ROLE, VERIFIED_ROLE)
from getwvkeysbot.config import (
ADMIN_ROLES,
ADMIN_USERS,
BOT_PREFIX,
BOT_TOKEN,
DEVELOPMENT_GUILD,
GUILD_ID,
INTERROGATION_CHANNEL_ID,
IS_DEVELOPMENT,
LOG_CHANNEL_ID,
SCRIPT_DEV_ROLE_ID,
SCRIPTS_CHANNEL_ID,
SUS_ROLE,
VERIFIED_ROLE,
)
from getwvkeysbot.redis import OPCode, make_api_request
from getwvkeysbot.utils import FlagAction, UserFlags, construct_logger

Expand Down Expand Up @@ -261,6 +271,8 @@ async def suspend_user(ctx: commands.Context, member: discord.Member, reason: st
message = "{}, Your access has been suspended for the following reason: **{}**".format(member.mention, reason)

await interrogation_channel.send(message)

await ctx.reply("{} has been suspended".format(member.mention))
except Exception as e:
logger.exception("[Discord]", e)
await ctx.reply("An error occurred while suspending user: {}".format(e))
Expand Down

0 comments on commit a56b6e4

Please sign in to comment.