@Quaasaar

None_none_none_None_none_none_?

None_none_none_None_none_none_None_none_none_None_none_none_None_none_none_None_none_none_
  • Вопрос задан
  • 534 просмотра
Решения вопроса 1
total4c
@total4c
Говнокодер
from threading import Thread
import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='!')


@bot.command(pass_context=True)
async def f(ctx):
    for i in range(3):
        await ctx.send('Test2')


@bot.command(pass_context=True)
async def f_2(ctx):
    for i in range(3):
        await ctx.send('Test')


@bot.command(pass_context=True)
async def test1(ctx):
    bot.loop.create_task(f(ctx))
    bot.loop.create_task(f_2(ctx))


bot.run()
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы