mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 00:09:08 +02:00
Yo Mama Command
This commit is contained in:
@@ -260,7 +260,7 @@ in the appropriate channel's topic to use it.
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
Total: 558
|
Total: 559
|
||||||
|
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
@@ -361,6 +361,7 @@ Total: 558
|
|||||||
* **this-for-that:** So, basically, it's like a bot command for this dumb meme.
|
* **this-for-that:** So, basically, it's like a bot command for this dumb meme.
|
||||||
* **word:** Responds with a random word.
|
* **word:** Responds with a random word.
|
||||||
* **xiao-fact:** Responds with a random fact about Xiao.
|
* **xiao-fact:** Responds with a random fact about Xiao.
|
||||||
|
* **yo-mama:** Responds with a random "Yo Mama" joke.
|
||||||
|
|
||||||
### Random Image:
|
### Random Image:
|
||||||
|
|
||||||
@@ -1549,6 +1550,8 @@ here.
|
|||||||
* http-duck ([API](https://random-d.uk/http))
|
* http-duck ([API](https://random-d.uk/http))
|
||||||
- [RandomFox](https://randomfox.ca/)
|
- [RandomFox](https://randomfox.ca/)
|
||||||
* fox (API)
|
* 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 Puppy](http://www.recipepuppy.com/)
|
||||||
* recipe ([API](http://www.recipepuppy.com/about/api/))
|
* recipe ([API](http://www.recipepuppy.com/about/api/))
|
||||||
- [RedBubble - Akbar Mna](https://www.redbubble.com/en/people/akbarmna/shop)
|
- [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",
|
"name": "xiao",
|
||||||
"version": "119.42.2",
|
"version": "119.43.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user