mirror of
https://github.com/turtlebasket/comrade-bot.git
synced 2026-03-05 03:54:27 -08:00
use tasks
This commit is contained in:
3
bot.py
3
bot.py
@@ -13,6 +13,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 discord.ext import tasks
|
||||||
from os import environ
|
from os import environ
|
||||||
import dbl
|
import dbl
|
||||||
from bot_utils import *
|
from bot_utils import *
|
||||||
@@ -283,4 +284,4 @@ async def ban(ctx, target_user:discord.User):
|
|||||||
|
|
||||||
banning_users.remove(target_user)
|
banning_users.remove(target_user)
|
||||||
|
|
||||||
bot.run(tokens["bot_token"])
|
bot.run(tokens["bot_token"])
|
||||||
|
|||||||
Reference in New Issue
Block a user