Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DwarflinDeveloping authored Apr 9, 2021
1 parent 7c86188 commit b629d77
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
verify_messages = []


def make_directories():
from os.path import isdir
if not isdir("data"):
os.mkdir("data")
if not isdir("data/verify_messages"):
os.mkdir("data/verify_messages")


@bot.event
async def on_raw_reaction_add(payload):
if payload.emoji.name != "✅" or payload.user_id == bot.user.id:
Expand Down Expand Up @@ -103,4 +111,7 @@ async def verify(ctx, *args):
else:
await ctx.send("Wrong usage! See ``%verify``")


make_directories()

bot.run(os.getenv("TOKEN"))

0 comments on commit b629d77

Please sign in to comment.