- Go to reddit apps and create a "script" app
- Fill it up and
update - Copy the Client ID and Client Secret and set your environment variables
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.
This file contains hidden or 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
| 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 |


