In this week i worked again on my Discord bot. I have edited a new command `!event <event here>`and I have modified the `!serverinfo` command. One very important thing I did is I solved a issue that made the bot repsond to any prefix.
!event command
This command is not 100% fiinished as I want to be able to put more variables on it. But currently when you use per eveample "!event Airshow Training @ 13:00 UTC+2" the bot first tags @everyone which gives a noddification to everyone in the server, then that @everybody message gets delted so it looks good when the bot send the Enbed message. In the enbed currently there is on varriable but i want to make it so there are also other variables like "!event <event titile> <event description> <event starting time> <event finish time>". After the bot has sent the enbed the bot reacts with a ✅ or a ❎ so people can say if they are coming to the event or not. Currently in discord.js you cant put in which order the bot will put the emojis but normally it does the checkmark first. (GIF above showing how it works)
!serverinfo modifications
I have complatly modified this command and added a lot more information about this server. First of all I made that the fields with not much information can be 2 next to each other so that the embed is smaller and it looks better. The I added the new information:
- Server Region
- Server ID
- AFK Channel
- AFK Timeout
- Roles
Prefix Fix
After asking other discord developers it turns out that the problem was that the following line was misssing:
!event command
!serverinfo modifications
I have complatly modified this command and added a lot more information about this server. First of all I made that the fields with not much information can be 2 next to each other so that the embed is smaller and it looks better. The I added the new information:
- Server Region
- Server ID
- AFK Channel
- AFK Timeout
- Roles
Prefix Fix
After asking other discord developers it turns out that the problem was that the following line was misssing:
if (!message.content.startsWith(prefix)) return;


Comentarios
Publicar un comentario