bot.LoopCommand will repeatedly send a command or message to a channel or someone's DMs.
An Event Function that must be used in the main file!
1 - The loop command name operates just like the space command name operates. The name of the loop command is just for reference for you.
2 - The bot needs to be able to send it to a channel for the function to operate properly.
3 - Bot reads the time in milliseconds
1000ms = 1 second
4 - LoopCommand will start as soon as the bot is turned on and will continue until the bot is turned off. The first message that will be sent by the bot will be the time you put in the command
name: "this can be anything, its just reference",
This will send the word
to the given channel ID in the command every 20 seconds
Always follow Discord (TOS) Terms of Service! We do not condone spamming, abuse of the Official Discord API and we are not held responsible for your actions!
HINT: Sending 5 messages within 5 seconds of each other is considered API Abuse so do not do it!