This commit is contained in:
2025-11-26 19:34:08 +05:00
commit 1dd4394e4b
11 changed files with 926 additions and 0 deletions

28
c/testc.py Normal file
View File

@@ -0,0 +1,28 @@
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))