Files
botpy/c/testc.py
2025-11-26 19:34:08 +05:00

29 lines
720 B
Python

import discord
from discord.ext import commands
from discord.ext.commands import has_permissions, Context
import time
import random
class Testc(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.last_member = None
@commands.command()
async def say(self, context: Context, *args):
"""
Repeats your message
"""
await context.send(allowed_mentions=discord.AllowedMentions(roles=False, users=False, everyone=False), content=" ".join(args))
await context.message.delete()
@commands.Cog.listener()
async def on_ready(self):
print('Testc cog has been loaded')
async def setup(bot):
await bot.add_cog(Testc(bot))