H
H
HwoPlague2020-06-26 17:52:04
Python
HwoPlague, 2020-06-26 17:52:04

How to implement a reminder bot for discord?

I recently returned to my favorite mmo, created a gi with friends and ran into a problem, I need to create a reminder bot, the game has weekly activities that are repeated on Mon, Tue, Wed, etc. by Moscow time. The bot should automatically for example: Every Tuesday at 13:30 write a message to a specific channel. Please help me, I've been suffering with this hemorrhoid for more than a month and I can't find the answer anywhere

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-06-26
@HwoPlague

I will tell you on the example of using javascript, the discord.js library
on the Internet, there are a lot of tutorials on creating the bot itself, I will only show you how to make a "reminder"

if (message.content === `!remind`) {
       setTimeout(function () {
        message.channel.send('Напоминание сработало!') // действие
  }, 1000 // время в миллисекундах, через которое нужно выполнить действие
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question