mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-08-19 19:53:19 +02:00
🎨 - Massive code cleaning
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user