Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Tutorial Writing a Discord bot filter_list
Author
Message
RE: Writing a Discord bot #11
(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.

Reply

RE: Writing a Discord bot #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
});

Reply

RE: Writing a Discord bot #13
Selfbots are against discord TOS and are depreciated. You should use a token. Make a bot account. Google Discord my apps.
(This post was last modified: 08-31-2017, 03:53 AM by Esoterith.)

Reply

RE: Writing a Discord bot #14
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.
[Image: AD83g1A.png]

Reply

RE: Writing a Discord bot #15
(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.
[Image: oAqtc2l.png]

[+] 1 user Likes Skryptec's post
Reply







Users browsing this thread: 2 Guest(s)