🔥 clenup imports

This commit is contained in:
ddorn 2020-04-30 21:22:17 +02:00
parent b36a582a06
commit d16aeee4c0
5 changed files with 6 additions and 12 deletions

View File

@ -1,12 +1,9 @@
import code import code
import sys
from importlib import reload
from pprint import pprint from pprint import pprint
import discord import discord
from discord import Colour, TextChannel, PermissionOverwrite from discord import TextChannel, PermissionOverwrite
from discord.ext.commands import command, has_role, Bot, has_any_role from discord.ext.commands import command, has_role, Bot, Cog
from discord.ext.commands import Cog
from discord.utils import get from discord.utils import get
from src.constants import * from src.constants import *
@ -168,9 +165,10 @@ class DevCog(Cog, name="Dev tools"):
await ctx.send(str(jury_channel)) await ctx.send(str(jury_channel))
@command(name="send", hidden=True) @command(name="send")
@has_role(Role.DEV) @has_role(Role.DEV)
async def send_cmd(self, ctx, *msg): async def send_cmd(self, ctx, *msg):
"""Envoie un message."""
await ctx.message.delete() await ctx.message.delete()
await ctx.send(" ".join(msg)) await ctx.send(" ".join(msg))

View File

@ -11,13 +11,11 @@ from discord.ext.commands import (
Cog, Cog,
command, command,
Context, Context,
Bot,
Command, Command,
CommandError, CommandError,
Group, Group,
) )
from src import utils
from src.constants import * from src.constants import *
from src.constants import Emoji from src.constants import Emoji
from src.core import CustomBot from src.core import CustomBot

View File

@ -3,7 +3,7 @@ from typing import List, Tuple
import discord import discord
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import Cog, Bot, group, Context from discord.ext.commands import Cog, group, Context
from discord.utils import get, find from discord.utils import get, find
from src.constants import * from src.constants import *

View File

@ -5,7 +5,7 @@ import random
from collections import defaultdict, namedtuple from collections import defaultdict, namedtuple
from io import StringIO from io import StringIO
from pprint import pprint from pprint import pprint
from typing import Type, List, Dict from typing import Type, Dict
import discord import discord
import yaml import yaml

View File

@ -2,11 +2,9 @@ import asyncio
import sys import sys
from importlib import reload from importlib import reload
import psutil
from discord import User, Message, Reaction from discord import User, Message, Reaction
from discord.ext.commands import Bot from discord.ext.commands import Bot
__all__ = ["CustomBot"] __all__ = ["CustomBot"]
from discord.utils import get from discord.utils import get