Ir al contenido principal

Entradas

Mostrando entradas de septiembre, 2018

Discord.JS - Week 3

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...

Discord.js - Week 2

In this week I have made some development on my discord bot. The major thing I did this week puting the bots in a server PC I got. The serverPC is runing a version of Debian Linux. I had never used any type of linux machines and i encuntured some problems trying to get the bots runing on the server. The first thing i did is download the node_modules that are needed to download the disocrd.js (it is a "integgration" for javascript to be able to create discord bot. It has the guild information and much more.) Then I had to install the disocrd.js modules (**npm install discord.js --save**) here is were all the problems started. In every command of the bot you have to have the constant which declared discord.js and in half of my constants i had the following: const Disocrd = require(" D isocrd.js"); this worked perfectly on widows machines which was the machine i started making the bots and testing them. When i tried to run the bot is got the following err...