discord-bot/cogs/owner/sayCog.py
rzmk 2b8e2345f9 First official build of bot!
Co-authored-by: iakrules <64628083+iakrules@noreply.github.com>
2021-08-01 14:36:34 -04:00

18 lines
No EOL
413 B
Python

import discord
from discord.ext import commands
class SayCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
# Commands
@commands.command(aliases=['speak'])
@commands.is_owner()
async def say(self, ctx, *, content):
"""Lets the bot say given arguments"""
await ctx.message.delete()
await ctx.send(content)
def setup(bot):
bot.add_cog(SayCog(bot))