Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- import discord
- from discord.ext import commands
- reddit = praw.Reddit(client_id='lol',
- client_secret='lol',
- password='lol',
- user_agent='lol',
- username='lol')
- bot = commands.Bot(command_prefix='ss!', description="A bot for Sequence Solving.")
- bot.remove_command("help")
- @bot.command()
- async def sendsolution(ctx, *, solution: str):
- try:
- reddit.subreddit('sequence').message(solution, solution)
- await ctx.send("Solution sent!\nCheck r/sequence or <#561300595353583627> to see if it was correct!")
- except:
- await ctx.send("ERROR: Something went wrong, I'm not sure what though...")
- bot.run('bottoken')
Add Comment
Please, Sign In to add comment