mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fruit
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
[
|
||||
"Apple",
|
||||
"Apricot",
|
||||
"Avacado",
|
||||
"Banana",
|
||||
"Bilberry",
|
||||
"Blackberry",
|
||||
"Blackcurrant",
|
||||
"Blueberry",
|
||||
"Boysenberry",
|
||||
"Crab Apples",
|
||||
"Currant",
|
||||
"Cherry",
|
||||
"Cherimoya",
|
||||
"Chico Fruit",
|
||||
"Cloudberry",
|
||||
"Coconut",
|
||||
"Cranberry",
|
||||
"Cucumber",
|
||||
"Custard apple",
|
||||
"Damson",
|
||||
"Date",
|
||||
"Dragonfruit",
|
||||
"Durian",
|
||||
"Elderberry",
|
||||
"Feijoa",
|
||||
"Fig",
|
||||
"Goji berry",
|
||||
"Gooseberry",
|
||||
"Grape",
|
||||
"Raisin",
|
||||
"Grapefruit",
|
||||
"Guava",
|
||||
"Honeyberry",
|
||||
"Huckleberry",
|
||||
"Jabuticaba",
|
||||
"Jackfruit",
|
||||
"Jambul",
|
||||
"Jujube",
|
||||
"Juniper berry",
|
||||
"Kiwano",
|
||||
"Kiwifruit",
|
||||
"Kumquat",
|
||||
"Lemon",
|
||||
"Lime",
|
||||
"Loquat",
|
||||
"Longan",
|
||||
"Lychee",
|
||||
"Mango",
|
||||
"Mangosteen",
|
||||
"Marionberry",
|
||||
"Melon",
|
||||
"Cantaloupe",
|
||||
"Honeydew",
|
||||
"Watermelon",
|
||||
"Miracle fruit",
|
||||
"Mulberry",
|
||||
"Nectarine",
|
||||
"Nance",
|
||||
"Olive",
|
||||
"Orange",
|
||||
"Blood orange",
|
||||
"Clementine",
|
||||
"Mandarine",
|
||||
"Tangerine",
|
||||
"Papaya",
|
||||
"Passionfruit",
|
||||
"Peach",
|
||||
"Pear",
|
||||
"Persimmon",
|
||||
"Plantain",
|
||||
"Plum",
|
||||
"Prune (dried plum)",
|
||||
"Pineapple",
|
||||
"Plumcot (or Pluot)",
|
||||
"Pomegranate",
|
||||
"Pomelo",
|
||||
"Purple mangosteen",
|
||||
"Quince",
|
||||
"Raspberry",
|
||||
"Salmonberry",
|
||||
"Rambutan",
|
||||
"Redcurrant",
|
||||
"Salal berry",
|
||||
"Salak",
|
||||
"Satsuma",
|
||||
"Soursop",
|
||||
"Star fruit",
|
||||
"Solanum quitoense",
|
||||
"Strawberry",
|
||||
"Tamarillo",
|
||||
"Tamarind",
|
||||
"Ugli fruit",
|
||||
"Yuzu",
|
||||
"Chili Pepper",
|
||||
"Corn Kernel",
|
||||
"Eggplant",
|
||||
"Pea",
|
||||
"Squash",
|
||||
"Sunflower Seed",
|
||||
"Tomato",
|
||||
"Pant",
|
||||
"Delta's Mystery Fruit"
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const fruits = require('../../assets/json/fruit');
|
||||
|
||||
module.exports = class FruitCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'fruit',
|
||||
group: 'random',
|
||||
memberName: 'fruit',
|
||||
description: 'Responds with a random fruit.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say(fruits[Math.floor(Math.random() * fruits.length)]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user