From 97970c23f8a2a1288c1b48be027db2e7e16820e0 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 12 Jul 2020 15:36:42 -0500 Subject: [PATCH] UwU --- .gitignore | 3 ++- README.md | 16 ++++++++++++++++ src/config.json | 9 --------- src/index.js | 3 +-- 4 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 src/config.json diff --git a/.gitignore b/.gitignore index 12ac647..c4e5e71 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -.DS_Store \ No newline at end of file +.DS_Store +/src/config.js \ No newline at end of file diff --git a/README.md b/README.md index c90f348..551b16a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ # Osselbot A bot that is kinda stupid, but it works surprisingly well ![Node.js CI](https://github.com/Technicolor-creamsicle/Osselbot/workflows/Node.js%20CI/badge.svg) + +**THIS BOT REQUIRES HEAVY MODIFICATION TO WORK ON OTHER SERVERS!** + +Example config.js to be placed in /src + +```json +{ +"token" : "API KEY", + "prefix": "?", + "verbalabuse": [ + "Quotes", + "to insult.", + "your members." + ] + } +``` diff --git a/src/config.json b/src/config.json deleted file mode 100644 index 6b27fbd..0000000 --- a/src/config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "token": "Njc4MDkzNjY4NzcwNTEyOTE3.Xr7SNw.XS_D_dEJ7hX6N5Rmnfr_OQpfznU", - "prefix": "?", - "abuse": [ - "May you never reproduce", - "I can eat a bowl of alphabet soup and shit out a more coherent sentence than you.", - "you are living proof darwinism is dead, hell, even reversing." - ] -} diff --git a/src/index.js b/src/index.js index 3be92b2..1472b04 100755 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,6 @@ const prettyMilliseconds = require('pretty-ms'); const fs = require('fs'); const homedir = require('os').homedir; const info = require("../package.json"); -// const fetch = require('node-fetch'); //importing files const config = require("./config.json"); // This is making clients @@ -132,7 +131,7 @@ client.on("message", async message => { if (command === "va") { let num = Math.floor(Math.random() * (config.abuse.length + 1)); //The maximum is exclusive and the minimum is inclusive - return message.reply(`${config.abuse[num]}`) + return message.reply(`${config.verbalabuse[num]}`) } //////////////////////////////////////////////////////////////////////////////// if (command === "say") {