Skip to content

Commit

Permalink
feat: add info list with all active bots and commands
Browse files Browse the repository at this point in the history
  • Loading branch information
julianullrich99 committed Oct 10, 2021
1 parent 37d3cc8 commit deeb3ff
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion eins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
33 changes: 33 additions & 0 deletions info.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit deeb3ff

Please sign in to comment.