admin.py 560 B

1234567891011121314151617181920
  1. #import discord
  2. import secrets
  3. from discord.ext import commands
  4. class Admin(commands.Cog):
  5. """Administrative functionality."""
  6. def __init__(self, bot: commands.Bot):
  7. self.bot = bot
  8. @commands.command(
  9. description="Modify channel settings",
  10. brief="Set channel specific settings via the webgui",
  11. help="Sends a single-use time based token to the webportal"
  12. )
  13. async def channelsettings(self, ctx: commands.Context, *, text: str):
  14. pass
  15. temp_key = secrets.token_urlsafe(40)[:40]
  16. #await self.bot.change_presence(activity=discord.Game(name=text))