invalidated all passwords and copied them to a local config file

This commit is contained in:
GottZ 2018-03-15 15:05:46 +00:00
parent adddd26597
commit 652aa09353
3 changed files with 25 additions and 8 deletions

15
.config.example.json Normal file
View File

@ -0,0 +1,15 @@
{
"servers": {
"asd": {
"host": "domain.tld",
"port": 6667,
"secure": false,
"srvPassword": "example",
"nick": "bert",
"userName": "foo",
"realName": "bar"
}
},
"sentry": "you should know what this is for. else remove it from index.js before running"
}

1
.gitignore vendored
View File

@ -1 +1,2 @@
node_modules node_modules
.config.json

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
const config = require('./.config.json');
const Raven = require('raven'); const Raven = require('raven');
Raven.config('https://10749fc75fc14fc5aa6b6212adbfe9ec:c291a65aa6014bb781232e0995f7a81d@sentry.njgz.de/4').install(); Raven.config(config.sentry).install();
const Irc = require("irc"); const Irc = require("irc");
const Mysql = require("mysql"); const Mysql = require("mysql");
@ -36,19 +36,20 @@ let irc = {};
//irc.client = new Irc.Client('irc.rizon.so', 'w0bm', { //irc.client = new Irc.Client('irc.rizon.so', 'w0bm', {
//irc.client = new Irc.Client('irc.n0xy.net', 'w0bm', { //irc.client = new Irc.Client('irc.n0xy.net', 'w0bm', {
irc.client = new Irc.Client('znc.gottz.de', 'w0bm', {
irc.client = new Irc.Client(config.servers.n0xy.host, config.servers.n0xy.nick, {
// channels: ["#gz", "#w0bm"], // channels: ["#gz", "#w0bm"],
port: 6667, port: config.servers.n0xy.port,
secure: false, secure: config.servers.n0xy.secure,
retryCount: 12000, retryCount: 12000,
retryDelay: 3000, retryDelay: 3000,
userName: "Abdullah", userName: config.servers.n0xy.userName,
realName: "Fritz", realName: config.servers.n0xy.realName,
debug: false, debug: false,
selfSigned: false, selfSigned: false,
debugRaw: false, debugRaw: false,
autoConnect: false, autoConnect: false,
password: "w0bm/n0xy:Roquaib7jae9miey3aey" password: config.servers.n0xy.srvPassword
}); });
if (process.env.NODE_ENV != 'production') { if (process.env.NODE_ENV != 'production') {