Browse Source

example and readme update

master
Steve Saldivar 12 years ago
parent
commit
95e22dd0c8
  1. 4
      README.md
  2. 18
      users/example.js

4
README.md

@ -32,7 +32,7 @@ Basic Setup
example.js
````javascript
var LoyaltyBot = require('./lib/initialize.js');
var loyaltybot = require('./../lib/initialize.js');
LoyaltyBot.initialize({
// twitch info
@ -44,7 +44,7 @@ LoyaltyBot.initialize({
// currency system
currency : {
name : 'LoyaltyPoints',
name : 'Points',
payrate : 15,
host : '127.0.0.1',
user : 'mysql_user',

18
users/example.js

@ -1,24 +1,24 @@
var loyaltybot = require('./../lib/initialize.js');
loyaltybot.initialize({
LoyaltyBot.initialize({
// twitch info
twitch : {
channel : 'loyaltybot',
bot : {name: 'LoyaltyBot', password: 'password'},
channel : 'loyalty',
bot : {name: 'LoyaltyBot', password: 'loyalty!loyalty!loyalty!'},
subscribers : 'https://spreadsheets.google.com/feeds/list/****/od6/public/basic?alt=json'
},
// currency info
// currency system
currency : {
name : 'Points',
payrate : 15,
host : '1.1.1.1',
user : 'loyalty',
password : 'pass',
database : 'loyaltypoints',
host : '127.0.0.1',
user : 'mysql_user',
password : 'mysql_password',
database : 'mysql_database',
website : 'http://www.loyaltypoints.com'
},
// optional features
// optional
commands: true
});
Loading…
Cancel
Save