Skip to content

Commit

Permalink
😯 [1.1.4] - Run on repl.it?
Browse files Browse the repository at this point in the history
  • Loading branch information
PetyXbronCZ committed Jul 25, 2021
1 parent 1e18256 commit e7396ce
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
run = "npm start"
onBoot = "npm i"
ignoredPaths=[".gitignore"]
language = "Nodejs"
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* Lockdown mode
* Custom reply for command ip, test and version
* Installation with repl.it
* Better test command
7 changes: 5 additions & 2 deletions commands/test.js
Original file line number Diff line number Diff line change
@@ -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!!!
Expand All @@ -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?')
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e7396ce

Please sign in to comment.