Created
March 29, 2019 21:46
-
-
Save twnlink/e5a1e2022d61408b50fe8b85767b8b7e to your computer and use it in GitHub Desktop.
SequenceSolver bot for the SnakeRoom.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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