Skip to content

Instantly share code, notes, and snippets.

@twnlink
Created March 29, 2019 21:46
Show Gist options
  • Save twnlink/e5a1e2022d61408b50fe8b85767b8b7e to your computer and use it in GitHub Desktop.
Save twnlink/e5a1e2022d61408b50fe8b85767b8b7e to your computer and use it in GitHub Desktop.
SequenceSolver bot for the SnakeRoom.
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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment