SHARE
TWEET

Untitled

Techniker357 Dec 8th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # bot.py
  2. import os
  3. import random
  4.  
  5. import discord
  6. from discord.ext import commands
  7. from dotenv import load_dotenv
  8.  
  9. load_dotenv()
  10. token = os.getenv('DISCORD_TOKEN')
  11.  
  12. bot = commands.Bot(command_prefix='!')
  13.  
  14. @bot.command(pass_context=True)
  15. async def xsend(ctx, *, message):
  16.     await Bot.delete_message(ctx.message)
  17.     await Bot.send_message(discord.Object(id='408104999038746635'), message)
  18.  
  19. bot.run(token)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top