Question

How to code an autospawn bot

Posted May 28, 2021 254 views
Node.js

Hello everyone, I’m a noob in coding and I need some help..
I would like to create a discord bot like pokecord but I don’t know how to code the Pokémon’s spawn (I think it is every N messages) and I don’t know how to code the Pokémon’s capturing with the command… Sorry if these are dumb problems for you guys but I’m a newby..and sorry for my bad English..
I try to explain better, the bot should spawn after some messages (20 for expample) sent by the people in the server, the pokemon is just an embed with the picture and the description, and people can capture them with a command, for example “P! capture pikachu”. How can i make the bot spawn these embeds after 20 messages sent by the people? Is that something like a setinterval functions?
i mean, if i have a bot and i have and embed.. what the code should be to make it spawn every 20 messages? Sorry if i repeat but i’m not sure that i’m clear or not with this question :(
thank you very much for answer

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!