Skip to content

Commit

Permalink
Added the data dump for the 'animals' table.
Browse files Browse the repository at this point in the history
Noticed that the animals name data dump was missing, so I added it as a
QOL for people getting started on developing OwO bot. Furthermore I moved
the debug boolean to config.json so that it isn't spread out over 2 files.
  • Loading branch information
JustSamuel committed Apr 11, 2020
1 parent a9bc821 commit a12b67d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
17 changes: 9 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
* This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
* For more information, see README.md and LICENSE
*/


// Config file
const config = require('./src/data/config.json');

// Grab tokens and secret files
const debug = false;
if(!debug) var tracer = require('dd-trace').init()
const debug = config.debug;
if(!debug) var tracer = require('dd-trace').init();
if(debug) var auth = require('../tokens/scuttester-auth.json');
else var auth = require('../tokens/owo-auth.json');

// Config file
const config = require('./src/data/config.json');
const request = require('./utils/request.js');
// Eris-Sharder
const Sharder = require('eris-sharder').Master;
Expand All @@ -38,10 +39,10 @@ const totalShards = 8;
// How many clusters we will have
var clusters = Math.ceil(shards/totalShards);
if(debug){
shards = 4;
shards = 2;
firstShardID = 0;
lastShardID = shards-1;
clusters = 2
clusters = 1;
}
console.log("Creating shards "+firstShardID+"~"+lastShardID+" out of "+shards+" total shards!");

Expand All @@ -59,4 +60,4 @@ const totalShards = 8;
console.error("Failed to start eris sharder");
console.error(e);
}
})();
})();
10 changes: 10 additions & 0 deletions secret/OWO-TABLE-DATA.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ INSERT INTO `weapon` VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(
/*!40000 ALTER TABLE `weapon` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table 'animals'
--

LOCK TABLES `animals` WRITE;
/*!40000 ALTER TABLE `animals` DISABLE KEYS */;
INSERT INTO `animals` VALUES (':bee:'),(':bug:'),(':snail:'),(':beetle:'),(':butterfly:'),(':baby_chick:'),(':mouse2:'),(':rooster:'),(':rabbit2:'),(':chipmunk:'),(':sheep:'),(':pig2:'),(':cow2:'),(':dog2:'),(':cat2:'),(':crocodile:'),(':tiger2:'),(':penguin:'),(':elephant:'),(':whale:'),(':dragon:'),(':unicorn:'),(':snowman2:'),(':ghost:'),(':dove:'),(':gsquid:'),(':gowl:'),(':glion:'),(':gfox:'),(':gdeer:');
/*!40000 ALTER TABLE `animals` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `weapon_passive`
--
Expand Down
3 changes: 2 additions & 1 deletion src/data/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
"guildlink":"https://discord.gg/VKesv7J",
"invitelink":"https://discordapp.com/oauth2/authorize?client_id=408785106942164992&permissions=1074120776&scope=bot",
"blacklist": {
}
},
"debug": true
}
2 changes: 1 addition & 1 deletion src/owo.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const dbl = new DBL(auth.dbl);
class OwO extends Base{
constructor(bot){
super(bot);
this.debug = false;
this.auth = auth;
this.dbl = dbl;

Expand All @@ -40,6 +39,7 @@ class OwO extends Base{

// Bot config file
this.config = require('./data/config.json');
this.debug = this.config.debug;
this.prefix = this.config.prefix;

// Ban check
Expand Down

0 comments on commit a12b67d

Please sign in to comment.