SpinShare Referee Bot refbot.ellite.dev/overlay

add version command and moved clean and forceclean

+10 -1
+9
commands/extras/version.js
··· 1 + const { SlashCommandBuilder } = require('discord.js'); 2 + const pjson = require('../../package.json'); 3 + 4 + module.exports = { 5 + data: new SlashCommandBuilder().setName('version').setDescription('Replies with current version.'), 6 + async execute(interaction) { 7 + interaction.reply({ content: 'Current version is: `' + pjson.version + '`', withResponse: true }); 8 + }, 9 + };
commands/utility/clean.js commands/extras/clean.js
commands/utility/forceclean.js commands/extras/forceclean.js
+1 -1
package.json
··· 1 1 { 2 2 "name": "refbot", 3 - "version": "1.1.10", 3 + "version": "1.1.11", 4 4 "description": "", 5 5 "main": "index.js", 6 6 "scripts": {