Answers for "discord python send message every minute"

0

discord.py send message every x minute

import discord
from discord.ext import tasks

# Change this to whatever seconds you want it to be
# Or delete this line and change the x value into a number on the @tasks.loop param.
x = 5

@tasks.loop(minutes=x)
async def send():

    """Sends something every x minutes"""

    response = "blah blah blah"

    channel.send(response)

@send.before_loop
async def before():
    await bot.wait_until_ready()

send.start()
Posted by: Guest on November-06-2020
0

discord python send message every minute

how do i make it talk? is there a word i have to say?
Posted by: Guest on May-11-2021
0

discord python send message every minute

i dont know what to do
Posted by: Guest on March-18-2021
0

discord python send message every minute

ok yea ok
Posted by: Guest on March-18-2021

Code answers related to "discord python send message every minute"

Python Answers by Framework

Browse Popular Code Answers by Language