mirror of
				https://gitlab.com/ddorn/tfjm-discord-bot.git
				synced 2025-10-31 06:19:51 +01:00 
			
		
		
		
	🔥 clenup imports
This commit is contained in:
		| @@ -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)) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 * | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user