discord python send message every minute

Solutions on MaxInterview for discord python send message every minute by the best coders in the world

showing results for - "discord python send message every minute"
Ivanna
12 Mar 2018
1import discord
2from discord.ext import tasks
3
4# Change this to whatever seconds you want it to be
5# Or delete this line and change the x value into a number on the @tasks.loop param.
6x = 5
7
8@tasks.loop(minutes=x)
9async def send():
10
11    """Sends something every x minutes"""
12
13    response = "blah blah blah"
14
15    channel.send(response)
16
17@send.before_loop
18async def before():
19    await bot.wait_until_ready()
20
21send.start()
Fabio
28 Jan 2019
1how do i make it talk? is there a word i have to say?
Juan Manuel
14 Aug 2019
1i dont know what to do
Lorenzo
15 Oct 2017
1ok yea ok