From e7396ce6e8d51ef7ebc48e7ac3cde94f2c99a5f8 Mon Sep 17 00:00:00 2001 From: PetyXbronCZ Date: Sun, 25 Jul 2021 19:53:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=AF=20[1.1.4]=20-=20Run=20on=20repl.it?= =?UTF-8?q?=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .replit | 4 ++++ README.md | 5 ++++- commands/test.js | 7 +++++-- package.json | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 .replit diff --git a/.replit b/.replit new file mode 100644 index 0000000..bc0f222 --- /dev/null +++ b/.replit @@ -0,0 +1,4 @@ +run = "npm start" +onBoot = "npm i" +ignoredPaths=[".gitignore"] +language = "Nodejs" \ No newline at end of file diff --git a/README.md b/README.md index 32bd2f1..3001d1c 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,7 @@ This code could not be created without **Minecraft server util package** * Slash commands * Send embed message * Send message/announcement -* Lockdown mode \ No newline at end of file +* Lockdown mode +* Custom reply for command ip, test and version +* Installation with repl.it +* Better test command \ No newline at end of file diff --git a/commands/test.js b/commands/test.js index 90be220..d594ee6 100644 --- a/commands/test.js +++ b/commands/test.js @@ -1,4 +1,5 @@ const { commands } = require("../config"); +const util = require('minecraft-server-util') module.exports.config = { name: "test", //Name of command - RENAME THE FILE TOO!!! @@ -7,6 +8,8 @@ module.exports.config = { enable: true //Enable this command? - true or false (boolean) }; -module.exports.run = async (message) => { - try { message.channel.send("Everything should work!"); } catch(e) { console.log(e); }; +module.exports.run = async (bot, message) => { + const { server, config } = bot + + message.channel.send('Didn\'t you mean toast?') }; \ No newline at end of file diff --git a/package.json b/package.json index c28e466..0eb7224 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minecraft-bot", - "version": "1.1.3", + "version": "1.1.4", "description": "Discord minecraft bot, with which you can check your minecraft server status (online players, version, online status etc.)", "main": "index.js", "scripts": {