RE: Writing a Discord bot 08-30-2017, 11:36 PM
#12
(02-14-2017, 05:48 PM)ThePutzer Wrote: Hey TheEvilSocks,
nice Tutorial you made, but in the section on line "var bot = new Discordbot({" my cmd tells me "Discordbot" is not a constructor. I tried some ideas of fixing it but ended up the same. Can you help me out?
(03-05-2016, 03:00 AM)TheEvilSocks Wrote: //Here we create our bot variable, this is what we're going to use to communicate to discord.
var bot = new Discordbot({
email : auth.email, //<-- This is the email from your auth file.
password : auth.password,//<-- This is the password from your auth file.
autorun : true
});
change it to
var bot = new Discordbot.Client{(
email = auth.email
password = auth.password
autorun = true
});