Sinisterly
Tutorial Writing a Discord bot - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Design (https://sinister.ly/Forum-Design)
+--- Forum: Tutorials (https://sinister.ly/Forum-Tutorials--78)
+--- Thread: Tutorial Writing a Discord bot (/Thread-Tutorial-Writing-a-Discord-bot)

Pages: 1 2


RE: Writing a Discord bot - TheEvilSocks - 03-12-2017

(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
});

Please note that this tutorial was written back in 2016 and is completely outdated with the coming of actual bot accounts.


RE: Writing a Discord bot - Warriorfoox - 08-30-2017

(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
});


RE: Writing a Discord bot - Esoterith - 08-31-2017

Selfbots are against discord TOS and are depreciated. You should use a token. Make a bot account. Google Discord my apps.


RE: Writing a Discord bot - mothered - 08-31-2017

An old thread (still alive with replies), but I completely missed It.

I've only had 3 hours sleep, so I'll look Into this tomorrow.


RE: Writing a Discord bot - Skryptec - 08-31-2017

(08-31-2017, 06:47 AM)mothered Wrote: An old thread (still alive with replies), but I completely missed It.

I've only had 3 hours sleep, so I'll look Into this tomorrow.

This thread is pretty outdated as the library has been updated. If you like C#, you should check out the Discord.NET library and check out the documentation of that library, it's a very good one in my opinion and I like it way more than any other library.