🎨 - Massive code cleaning

This commit is contained in:
Florian Sylvain
2021-04-01 23:15:43 +02:00
parent 37115cb362
commit 53ccad4f1e
9 changed files with 102 additions and 100 deletions
+2 -3
View File
@@ -1,16 +1,16 @@
import discord
import asyncio
import socket
import re
import discord
from private import ID_TWITCH, TOKEN_TWITCH, SERVER, PORT, NICKNAME
from discord.ext import tasks, commands
from discord.ext.commands.cooldowns import BucketType
from emoji import demojize
from twitch import TwitchClient
twitch_client = TwitchClient(client_id=ID_TWITCH, oauth_token=TOKEN_TWITCH)
chats = dict()
def check_user(name):
user = twitch_client.users.translate_usernames_to_ids([name])
if not user:
@@ -94,7 +94,6 @@ class TwitchCmds(commands.Cog, name='Twitch commands'):
else:
await ctx.send('```This twitch channel doesn\'t seems to exist.```')
@commands.command()
async def chat_stop(self, ctx):
try: