Skip to content

Instantly share code, notes, and snippets.

View Mu7aMNaD's full-sized avatar
404 NOT FOUND

Mu7aMNaD

404 NOT FOUND
View GitHub Profile
@khgf
khgf / Bot.js
Last active September 14, 2022 02:18
const Discord = require('discord.js');
const client = new Discord.Client();
const fs = require('fs');
const moment = require("moment");
const prefix = '%';
client.on('ready', () => {
client.user.setGame(`%help || %invite`,"http://twitch.tv/S-F")
console.log(`${client.user.tag} is Now Online`)
});
@simonmeusel
simonmeusel / mcserver-discord-bot.js
Last active June 23, 2023 09:44
Start minecraft server via discord bot
var spawn = require('child_process').spawn;
var discord = require("discord.js");
var bot = new discord.Client();
var mcserver;
// The start.bat has to include a 'cd "C:/Users/_____/Desktop/Server/"' command (See start.bat for more details)
var MC_SERVER_START_SCRIPT = "C:/Users/_____/Desktop/Server/start.bat";
bot.on("message", function(message){