mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Yo Mama Command
This commit is contained in:
@@ -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
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.42.2",
|
||||
"version": "119.43.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user