Guest User

Untitled

a guest
Apr 8th, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. import praw
  2. import discord
  3. from discord.ext import commands
  4. reddit = praw.Reddit(client_id='lol',
  5. client_secret='lol',
  6. password='lol',
  7. user_agent='lol',
  8. username='lol')
  9. bot = commands.Bot(command_prefix='ss!', description="A bot for Sequence Solving.")
  10. bot.remove_command("help")
  11. @bot.command()
  12. async def sendsolution(ctx, *, solution: str):
  13. try:
  14. reddit.subreddit('sequence').message(solution, solution)
  15. await ctx.send("Solution sent!\nCheck r/sequence or <#561300595353583627> to see if it was correct!")
  16. except:
  17. await ctx.send("ERROR: Something went wrong, I'm not sure what though...")
  18. bot.run('bottoken')
Add Comment
Please, Sign In to add comment