diff --git a/assets/json/oracle-turret.json b/assets/json/oracle-turret.json new file mode 100644 index 00000000..b5f92c13 --- /dev/null +++ b/assets/json/oracle-turret.json @@ -0,0 +1,13 @@ +[ + "Hello.", + "I'm different.", + "Get mad.", + "Don't make lemonade.", + "Prometheus was punished by the gods for giving the gift of knowledge to man. He was cast into the bowels of the Earth and pecked by birds.", + "It won't be enough.", + "The answer is beneath us.", + "Her name is Caroline.", + "Remember that.", + "That's all I can say.", + "Don't forget." +] diff --git a/commands/random/oracle-turret.js b/commands/random/oracle-turret.js new file mode 100644 index 00000000..e888fe7e --- /dev/null +++ b/commands/random/oracle-turret.js @@ -0,0 +1,18 @@ +const { Command } = require('discord.js-commando'); +const quotes = require('../../assets/json/oracle-turret'); + +module.exports = class OracleTurretCommand extends Command { + constructor(client) { + super(client, { + name: 'oracle-turret', + aliases: ['im-different'], + group: 'random', + memberName: 'oracle-turret', + description: 'Responds with a random Oracle Turret quote.' + }); + } + + run(msg) { + return msg.say(quotes[Math.floor(Math.random() * quotes.length)]); + } +}; diff --git a/package.json b/package.json index 5bb82223..3074953f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "54.2.1", + "version": "54.3.0", "description": "Your personal server companion.", "main": "XiaoBot.js", "scripts": {