This commit is contained in:
Alex 2020-07-12 15:36:42 -05:00
parent 0796d13937
commit 97970c23f8
4 changed files with 19 additions and 12 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules/
.DS_Store
.DS_Store
/src/config.js

View File

@ -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."
]
}
```

View File

@ -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."
]
}

View File

@ -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") {