aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-07-12 19:31:52 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-07-12 19:31:52 +0000
commit058a82a5a367d38d6c9415c6b66f034476c337c9 (patch)
treea41201970459d04f04f7711d8680708c83e633f2 /bot.py
parent36b282ef5b74370e2faab7e357e742c8167caa88 (diff)
downloadsteve-bot-058a82a5a367d38d6c9415c6b66f034476c337c9.tar
steve-bot-058a82a5a367d38d6c9415c6b66f034476c337c9.tar.gz
steve-bot-058a82a5a367d38d6c9415c6b66f034476c337c9.tar.bz2
steve-bot-058a82a5a367d38d6c9415c6b66f034476c337c9.tar.lz
steve-bot-058a82a5a367d38d6c9415c6b66f034476c337c9.tar.xz
steve-bot-058a82a5a367d38d6c9415c6b66f034476c337c9.tar.zst
steve-bot-058a82a5a367d38d6c9415c6b66f034476c337c9.zip
Started switch from requests to aiohttp
Diffstat (limited to '')
-rwxr-xr-xbot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot.py b/bot.py
index 12ea846..d405115 100755
--- a/bot.py
+++ b/bot.py
@@ -1,6 +1,7 @@
from discord.ext import commands
import discord
import logging
+import aiohttp
import datetime
import json
@@ -35,6 +36,7 @@ class BedrockBot(commands.Bot):
super().__init__(command_prefix=get_prefix, case_insensitive=True)
self.logger = logging.getLogger('discord')
self.messageBlacklist = []
+ self.session = aiohttp.ClientSession()
with open('custom_commands.json', 'r') as f:
self.custom_commands = json.load(f)