Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- const client = new Discord.Client();
- client.on("ready", () => {
- client.user.setGame('!help | Syntax Helper')
- console.log("Server Connection Recieved");
- console.log("Sending Packets To Discord...");
- console.log("Adding Bot To Server Connection");
- console.log("Status: Complete");
- console.log("Syntax Helper Online");
- });
- function doMagic8BallVoodoo() {
- var rand = [' Absolutly.', ' Absolutly not.', ' It is true.', ' Impossible.', ' Of course.', ' I do not think so.', ' It is true.', ' It is not true.', ' I am very undoubtful of that.', ' I am very doubtful of that.', ' Sources point to no.', ' Theories prove it.', ' Reply hazy try again', ' Ask again later', ' Better not tell you now', ' Cannot predict now', ' Concentrate and ask again'];
- return rand[Math.floor(Math.random()*rand.length)];
- }
- function doPing() {
- var rand = ['**Pinged To Server**',
- '**Pinged To Syntax Helper**',
- '**Instant Ping**',
- ':ping_pong: ']
- return rand[Math.floor(Math.random()*rand.length)];
- }
- client.on("message", (message) => {
- if (message.content.startsWith("!8ball")) {
- message.channel.send(doMagic8BallVoodoo());
- }
- if (message.content.startsWith("!help")) {
- message.channel.send("**Hey, Our Temporary Commands List Can Be Found At https://pastebin.com/raw/S6tANnGP , Soon We Will Have A Wesbite With All The Commands!**");
- }
- if (message.content.startsWith("!ping")) {
- message.channel.send({embed: {
- color: 3447003,
- description: doPing()
- }});
- }
- if (message.content.startsWith("!kick")) {
- if (message.author.hasPermission("kickMember")) {
- let MessageUser = message.guild.member(message.mentions.users.first());
- var args = message.content.split(" ").slice(1);
- let Reason = args[3]
- MessageUser.kick(Reason);
- }}
- });
- client.login("n0");
Advertisement
Add Comment
Please, Sign In to add comment