===================================
Deathguard Darnell is a "Discord" bot made to allow easy access to WoW data such as items, achievements, quests, and even the auction house! While that is the main goal of the bot it also does an incredible amount of other things such as Math with custom variables, execute code from discord and much more!
===================================
Todo can be found in a comment at the top of the main files in my projects. In this case it is WoWDB.js.
===================================
-
Make a file called
UserPass.js
in the same directory asWoWDB.js
var Discord = require('discord.io'); var bot = new Discord.Client({ token: "Your bot token" }); exports.bot = bot; //THIS IS REQUIRED FOR PERMISSIONS. YOU PROBABLY WANT TO SET THIS exports.owner = "your own discord id"; //THE NEXT TWO LINES ARE ONLY NEEDED FOR THE TWITTER MODULE. YOU CAN REMOVE THEM IF YOU DONT WANT THEM var Twitter = require('twitter');Twitter = new Twitter({consumer_key: 'twitter:conskey',consumer_secret: 'twitter:consec',access_token_key: 'twitter:accesskey',access_token_secret: 'twitter:accessec'});//Used for the twitter command exports.twitter=Twitter; //THE NEXT TWO LINES ARE ONLY NEEDED FOR THE LOG var mysql = require("mysql");mysql = mysql.createConnection({host:'mysqldb:host',user:'mysqldb:user',password:'mysqldb:pass',database:'mysqldb:database'});mysql.connect();//Used for the log exports.mysql=mysql;
MYSQL and Twitter are only required for some modules. If you don't have a Twitter api account or a MYSQL database set the variable to null and the associated modules will simply shutdown on load.
-
Make sure you have nodejs installed...
Install it from here if you haven't already.
-
Run the bot.
node .
-
Invite the bot to a server.
-
Type "!help" in the channel you are in for commands.