Skip to content

Commit

Permalink
Env instead of file with token
Browse files Browse the repository at this point in the history
  • Loading branch information
zdon0 committed Sep 24, 2022
1 parent 7fa9350 commit eed5259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import json
import logging
import os
from random import shuffle

import aiohttp
Expand All @@ -13,8 +14,7 @@
logging.basicConfig(level=logging.INFO)

try:
with open('service/token', 'r') as file:
bot = Bot(token=file.readline().strip())
bot = Bot(token=os.getenv("TOKEN"))
except:
raise

Expand Down

0 comments on commit eed5259

Please sign in to comment.