default values

This commit is contained in:
Flummi 2016-11-19 07:46:08 +01:00
parent b2e8119155
commit 4acff5016a
9 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@ module.exports = (lib) => {
name: 'clean',
call: /^\!clean/i,
level: 100,
active: 1,
active: 0,
func: (e) => {
var dir_b = fs.readdirSync('./b/'); // Items
var dir_t = fs.readdirSync('./t/'); // Thumbnails

View File

@ -3,7 +3,7 @@ module.exports = (lib) => {
name: 'debug',
call: /^\!debug$/i,
level: 100,
active: 1,
active: 0,
func: (e) => {
if(lib.debug) {
lib.debug = false;

View File

@ -5,7 +5,7 @@ module.exports = (lib) => {
name: 'delete',
call: /^\!(del|rm) (\d+)$/i,
level: 100,
active: 1,
active: 0,
func: (e) => {
var id = e.message.split(' ')[1];
lib.sql.query("select `dest` from `f0ck`.`items` where `id` = ?", id, (err, rows, fields) => {

View File

@ -5,7 +5,7 @@ module.exports = (lib) => {
name: 'gitpull',
call: /^\!pull$/,
level: 100,
active: 1,
active: 0,
func: (e) => {
exec('cd ../../ & git pull', (error, stdout) => {
if(error === null) {

View File

@ -13,9 +13,9 @@ module.exports = (lib) => {
name: 'parser',
call: /https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi,
level: 0,
active: 1,
active: 0,
func: (e) => {
if(e.channel.getName() == '#f0ck' || e.channel.getName() == '#kbot-dev') {
//if(e.channel.getName() == '#f0ck' || e.channel.getName() == '#kbot-dev') {
if(!e.message.match(/\!ignore/)) {
var tmp = e.message.match(/https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi); // get links
tmp.forEach((entry,i,a) => {
@ -58,7 +58,7 @@ module.exports = (lib) => {
});
}
});
}
//}
}
},
desc: 'muh'

View File

@ -5,7 +5,7 @@ module.exports = (lib) => {
name: 'stats',
call: /^\!stats$/i,
level: 10,
active: 1,
active: 0,
func: (e) => {
lib.sql.query("select count(`id`) as anzahl from `f0ck`.`items`", (err, rows, fields) => {
var ret = "f0ck gave "+String(rows[0].anzahl);

View File

@ -3,7 +3,7 @@ module.exports = (lib) => {
name: 'sync',
call: /^!sync$/i,
level: 100,
active: 1,
active: 0,
func: (e) => {
lib.bot.names(e.channel, e.network, names => {
Object.keys(names).forEach(key => {

View File

@ -5,7 +5,7 @@ module.exports = (lib) => {
name: 'thumbnailer',
call: /^\!thumb(.*\d+)?$/i,
level: 100,
active: 1,
active: 0,
func: (e) => {
var id;
if(id = e.message.split(' ')[1]) {

View File

@ -7,7 +7,7 @@ module.exports = (lib) => {
name: 'umode',
call: /^\!umode .*/i,
level: 100,
active: 1,
active: 0,
func: (e) => {
var tmp = e.message.trim().split(' ');
tmp.shift();