Yo Mama Command

This commit is contained in:
Dragon Fire
2020-11-15 10:36:52 -05:00
parent 0dea8ccff6
commit e1ad195e85
4 changed files with 1073 additions and 2 deletions
+4 -1
View File
@@ -260,7 +260,7 @@ in the appropriate channel's topic to use it.
## Commands
Total: 558
Total: 559
### Utility:
@@ -361,6 +361,7 @@ Total: 558
* **this-for-that:** So, basically, it's like a bot command for this dumb meme.
* **word:** Responds with a random word.
* **xiao-fact:** Responds with a random fact about Xiao.
* **yo-mama:** Responds with a random "Yo Mama" joke.
### Random Image:
@@ -1549,6 +1550,8 @@ here.
* http-duck ([API](https://random-d.uk/http))
- [RandomFox](https://randomfox.ca/)
* fox (API)
- [rdegges](https://github.com/rdegges)
* yo-mama ([Joke Data](https://github.com/rdegges/yomomma-api/blob/master/jokes.txt))
- [Recipe Puppy](http://www.recipepuppy.com/)
* recipe ([API](http://www.recipepuppy.com/about/api/))
- [RedBubble - Akbar Mna](https://www.redbubble.com/en/people/akbarmna/shop)
File diff suppressed because it is too large Load Diff
+26
View File
@@ -0,0 +1,26 @@
const Command = require('../../structures/Command');
const jokes = require('../../assets/json/yo-mama');
module.exports = class YoMamaCommand extends Command {
constructor(client) {
super(client, {
name: 'yo-mama',
aliases: ['your-mama'],
group: 'random-res',
memberName: 'yo-mama',
description: 'Responds with a random "Yo Mama" joke.',
credit: [
{
name: 'rdegges',
url: 'https://github.com/rdegges',
reason: 'Joke Data',
reasonURL: 'https://github.com/rdegges/yomomma-api/blob/master/jokes.txt'
}
]
});
}
run(msg) {
return msg.say(jokes[Math.floor(Math.random() * jokes.length)]);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.42.2",
"version": "119.43.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {