run on heroku using env. var
parent
237e911e7d
commit
4e1f8692c3
4
bot.py
4
bot.py
|
@ -9,6 +9,7 @@ from urllib.request import urlopen, Request
|
||||||
import random
|
import random
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
from os import environ
|
||||||
from bot_utils import *
|
from bot_utils import *
|
||||||
|
|
||||||
# I know, config parsing is ugly and bad, I'll get around to refactoring later TwT
|
# I know, config parsing is ugly and bad, I'll get around to refactoring later TwT
|
||||||
|
@ -246,4 +247,5 @@ async def ban(ctx, target_user:discord.User):
|
||||||
|
|
||||||
banning_users.remove(target_user)
|
banning_users.remove(target_user)
|
||||||
|
|
||||||
bot.run(open("token.txt").read().strip())
|
# bot.run(open("token.txt").read().strip())
|
||||||
|
bot.run(environ["BOT_TOKEN"])
|
||||||
|
|
Loading…
Reference in New Issue