diff --git a/orochi/bot.py b/orochi/bot.py index 64ce18d..715f8fd 100644 --- a/orochi/bot.py +++ b/orochi/bot.py @@ -1,6 +1,5 @@ import disnake from disnake import CategoryChannel, PermissionOverwrite, TextChannel -from disnake.errors import InvalidData from disnake.ext import commands import logging @@ -152,6 +151,13 @@ async def on_ready(): config.save() +@bot.command() +@commands.has_permissions(administrator=True) +async def send(ctx: commands.Context, *, message: str): + await ctx.message.delete() + await ctx.send(message) + + @bot.command() async def vote(ctx: commands.Context): view = Confirm()