Skip to content

Instantly share code, notes, and snippets.

Instructions

  1. Go to reddit apps and create a "script" app
  2. Fill it up and update a pic
  3. Copy the Client ID and Client Secret and set your environment variables another pic
@kyb3r
kyb3r / autoupdate.md
Last active July 6, 2019 21:17
Add auto update functionality to Modmail

Optional steps (Auto-update)

You must fork for this to work. Make sure the name of your fork is exactly modmail

If you want your bot to have auto-update functionality so you can stay up-to-date with new features, do the following steps.

  1. Go into your Heroku app dashboard > deploy > and click connect to GitHub.
  2. Search for modmail and click connect. Note: it should say your GitHub name instead of kyb3r. sample
@kyb3r
kyb3r / game.py
Created September 19, 2018 11:59
from functools import partial
import random
class Point:
def __init__(self, row=0, col=0):
self.r = row
self.c = col
def __eq__(self, other):
return self.r == other.r and self.c == other.c