diff --git a/bot.js b/bot.js index 73cff3a..8d92fe0 100755 --- a/bot.js +++ b/bot.js @@ -13,6 +13,10 @@ client.on("ready", ()=>{ client.login(process.env.DISCORD_TOKEN) +const info = require("./info"); +var infobot = new info(client); +infobot.start(); + const deleteBot = require("./deleteBot"); var delBot = new deleteBot(client); diff --git a/eins.js b/eins.js index 44ac2d1..23fb740 100644 --- a/eins.js +++ b/eins.js @@ -10,9 +10,9 @@ class bot{ //console.log("msg",msg.content); //console.log("channel",msg.channel.id); if (msg.content.startsWith(this.command)){ - if (!msg.member.roles.cache.some(r=>this.roles.includes(r.name)) ) return; var command = msg.content.split(" "); var count = (isNaN(+command[1])) ? 1 : +command[1]; + if (count > 1 && !msg.member.roles.cache.some(r=>this.roles.includes(r.name)) ) return; var customMessage = "1"; if (command.hasOwnProperty(2)){ command.splice(0,2); diff --git a/info.js b/info.js new file mode 100644 index 0000000..eeb365a --- /dev/null +++ b/info.js @@ -0,0 +1,33 @@ +const Discord = require("discord.js") + +class FlipBot{ + constructor(client){ + this.client = client; + this.command = "!orangensaft"; + } + + start(){ + this.client.on("message",msg=>{ + if (msg.content.startsWith(this.command)){ + var reply = new Discord.MessageEmbed().setColor("#0099ff") + .setTitle(`Orangensaft`) + .setFooter("Multibot von Julian Ullrich"); + + reply.addField("Orangensaft:", "Moin, Servus und Gurken Tag! Ich bin der Multivitaminsaft. Gesund und lecker. Ich helfe dir bei allem was man braucht.\n\nHier mal eine Liste mit allen aktuellen Bots die ich so bin:"); + + reply.addField("!flip", "Coinflip halt...") + reply.addField("!1", "EINS IN DEN CHAT, EINS, EINS IN DEN CHAT (mods können sogar mehrere einsen senden 😎)") + reply.addField("!ehre", "Gib anderen Leuten Ehre (!ehre @julian) wenn die was cooles gemacht haben, nimms wieder weg (!ehrenlos @anton) und guck dir die Liste an (!ehre). (ICH WILL DER ALLERBESTE SEIN!)") + reply.addField("!cute", "Wenn der Prof besonders cute ist... (!cute help)") + reply.addField("!cringe", "Naja, das gleiche nur mit cringe halt... (!cringe help)") + reply.addField("!alert", "Kann leute anstupsen und antworten wenn bestimmte Wörter fallen. Hihi lustig. (!alert help)") + + msg.reply(reply); + + } + }) + + } +} + +module.exports = FlipBot;