timer
This commit is contained in:
parent
0d2fbedf26
commit
cc8f142565
11
main.py
11
main.py
|
@ -4,17 +4,14 @@ try:
|
||||||
import nextcord
|
import nextcord
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("Trying to Install required module: nextcord[voice]\n")
|
print("Trying to Install required module: nextcord[voice]\n")
|
||||||
os.system("python -m pip install nextcord[voice]")
|
os.system("python -m pip install --upgrade nextcord[voice]")
|
||||||
import nextcord
|
import nextcord
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
import json
|
import json
|
||||||
import requests
|
|
||||||
import random
|
|
||||||
import asyncio
|
import asyncio
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
from speedtest import Speedtest
|
from speedtest import Speedtest
|
||||||
import string
|
import string
|
||||||
import datetime
|
|
||||||
from discord_together import DiscordTogether
|
from discord_together import DiscordTogether
|
||||||
|
|
||||||
|
|
||||||
|
@ -311,6 +308,12 @@ async def yt(ctx):
|
||||||
link = await bot.togetherControl.create_link(ctx.author.voice.channel.id, 'youtube')
|
link = await bot.togetherControl.create_link(ctx.author.voice.channel.id, 'youtube')
|
||||||
await ctx.send(f"{link}")
|
await ctx.send(f"{link}")
|
||||||
|
|
||||||
|
@bot.command()
|
||||||
|
async def timer(ctx, time: int): #таймер
|
||||||
|
await ctx.send(f"Таймер запущен на {time} секунд")
|
||||||
|
await asyncio.sleep(time)
|
||||||
|
await ctx.send(f"Таймер завершен")
|
||||||
|
|
||||||
|
|
||||||
# COGS
|
# COGS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue