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

View File

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

View File

@ -3,7 +3,7 @@ from typing import List, Tuple
import discord
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 src.constants import *

View File

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

View File

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