minor cleanup
This commit is contained in:
parent
2c2d191a08
commit
d60828df07
@ -11,7 +11,7 @@ import importlib
|
|||||||
import logging
|
import logging
|
||||||
import discord
|
import discord
|
||||||
import regex
|
import regex
|
||||||
from typing import Pattern
|
from regex import Pattern
|
||||||
from aiohttp import ClientSession, ClientTimeout
|
from aiohttp import ClientSession, ClientTimeout
|
||||||
from discord.ext import bridge, commands, tasks
|
from discord.ext import bridge, commands, tasks
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ class Karma(commands.Cog):
|
|||||||
|
|
||||||
|
|
||||||
@tasks.loop(seconds=30, reconnect=True)
|
@tasks.loop(seconds=30, reconnect=True)
|
||||||
async def update_karma_chan(self):
|
async def update_karma_chan(self) -> None:
|
||||||
"""Update the Karma Chan Leaderboard"""
|
"""Update the Karma Chan Leaderboard"""
|
||||||
try:
|
try:
|
||||||
top_embed = await self.util.get_top_embed(n=25)
|
top_embed = await self.util.get_top_embed(n=25)
|
||||||
@ -179,7 +179,7 @@ class Karma(commands.Cog):
|
|||||||
|
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_message(self, message: discord.Message):
|
async def on_message(self, message: discord.Message) -> None:
|
||||||
"""
|
"""
|
||||||
Message hook, to monitor for ++/--
|
Message hook, to monitor for ++/--
|
||||||
Also monitors for messages to #karma to autodelete, only Havoc may post in #karma!
|
Also monitors for messages to #karma to autodelete, only Havoc may post in #karma!
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
import logging
|
import logging
|
||||||
from typing import Optional, Pattern
|
from typing import Optional
|
||||||
|
from regex import Pattern
|
||||||
import urllib
|
import urllib
|
||||||
import discord
|
import discord
|
||||||
import regex
|
import regex
|
||||||
|
Loading…
x
Reference in New Issue
Block a user