Switching to asyncpg
This commit is contained in:
parent
fc4529bcba
commit
5495aa213e
@ -144,7 +144,7 @@ async def on_message(ctx):
|
|||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
bot.connect_db()
|
await bot.connect_db()
|
||||||
bot.recent_msgs = {}
|
bot.recent_msgs = {}
|
||||||
for guild in bot.guilds:
|
for guild in bot.guilds:
|
||||||
bot.recent_msgs[guild.id] = deque(maxlen=50)
|
bot.recent_msgs[guild.id] = deque(maxlen=50)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user