1
0
Fork 0
mirror of https://github.com/1disk/edp445.git synced 2024-08-14 22:47:02 +00:00
edp445/index.js
Jimi 7e0bd7a983 Token fix
Fixed the token, cuz it was public lmfao
2022-11-25 22:43:18 +01:00

56 lines
No EOL
1.8 KiB
JavaScript

const Discord = require('discord.js')
require('discord-inline-reply');
const { Client, Intents, Collection, MessageEmbed, MessageActionRow, MessageButton, DiscordAPIError } = require('discord.js');
const client = new Client()
client.on("ready", () => {
var channel = client.channels.cache.get('823953803409096806')
channel.send('just restarted my braun 🧠🧠]')
console.log(`The bot is online!`)
client.user.setActivity(`v2! | discord.gg/memee`, {
type: "WATCHING"
});
});
var makeReply = require('./makeReply.js')
client.on("message", async message => {
if(message.author.id === client.user.id){
return;
}
if(!message.guild){
var reply = await makeReply(message.content,message.author.username)
message.channel.startTyping();
setTimeout(function(){
message.channel.stopTyping();
message.channel.send({content:reply})
}, 2000);
return;
}
if (message.content.includes("@everyone")) {
return
}
if (message.content.includes("@here")) {
return
}
if (message.content === "!shelp") {
return message.lineReplyNoMention(`> **sexbot help command**\n \n- Commands:\n\`!sservers, !scontribute, !shelp\`\n \n- How to use sexbot?\n*Mention me in a message or dm me to talk.*`)
}
if (message.content === "!sservers") {
return message.lineReplyNoMention(`im in ${client.guilds.cache.size} guilds`)
}
if (message.content === "!scontribute") {
return message.lineReplyNoMention(`Join discord.gg/memee and upload your sexbot reply suggestion.`)
}
if (message.mentions.has(client.user)) {
var reply = await makeReply(message.content,message.author.username)
message.channel.startTyping();
setTimeout(function(){
message.channel.stopTyping();
message.lineReply({content:reply})
}, 2000);
}});
client.login("token")