Translated Labs

YOU SAID:

const Discord = require("discord.js"); const fs = require("fs"); const cmds = fs.readdirSync("./cmds"); const config = require("./config.json"); const storage = require("./storage.json"); const bot = new Discord.Client(); bot.login(config.token); bot.on("ready", async() => { console.log("Ready"); bot.user.setActivity(`${config.prefix} help`, {type: "WATCHING"}); bot.guilds.cache.forEach(x => { x.members.fetch(); }); }); bot.on("message", async(message) => { const args = message.content.split(" "); if (!args[1] || args[0].toLowerCase() != config.prefix || !message.member.roles.cache.has("409306044498444290") || message.author.bot || message.channel.type == "dm") return; if (storage.bans.includes(message.author.id)) { message.channel.send("You have been banned from using the bot, if you have any questions please contact the admins for more info"); } else if (cmds.includes(`${args[1].toLowerCase()}.js`)) { const embed = new Discord.MessageEmbed() .setTimestamp() .setColor(0x206694); await require(`./cmds/${args[1]}`).execute({ message: message, config: config, embed: embed, args: args, cmds: cmds, storage: storage, updateStorage: updateStorage }); message.channel.send(embed); } else if (message.author.id == config.owner || message.member.permissions.has("ADMINISTRATOR")) { switch (args[1]) { case "ban": if (!args[2]) return message.channel.send("User not specified"); const user = message.guild.members.cache.find(x => x.user.tag.toLowerCase().includes(args[2].toLowerCase()) || x.displayName.toLowerCase().includes(args[2].toLowerCase()) || x.id == args[2].replace(/[^0-9]/g, "")); if (!user) return message.channel.send("User not found"); if (user.id == config.owner || user.permissions.has("ADMINISTRATOR")) return message.channel.send("You can't ban this user"); storage.bans.push(user.id); message.channel.send(`Banned ${user.displayName} from the bot`); break; case "unban": if (!args[2]) return message.channel.send("User not specified"); const u = message.guild.members.cache.find(x => x.user.tag.toLowerCase().includes(args[2].toLowerCase()) || x.displayName.toLowerCase().includes(args[2].toLowerCase()) || x.id == args[2].replace(/[^0-9]/g, "")); if (!u) return message.channel.send("User not found"); if (!storage.bans.includes(u.id)) return message.channel.send("User is not banned"); storage.bans.splice(storage.bans.indexOf(u.id), 1) message.channel.send(`Unbanned ${u.displayName} from the bot`); break; } updateStorage(); } }); function updateStorage() { fs.writeFileSync("./storage.json", JSON.stringify(storage)); }

INTO JAPANESE

const Discord = require( "discord.js"); const fs = require( "fs"); const cmds = fs.readdirSync( "./ cmds"); const config = require( "./ config.json"); const storage = require( "./ storage.json"); const bot = new Discord.Client(); bot.login(config.token); bot.on( "ready"、async()=> { console.log( "Ready"); bot.user.setActivity( `$ {config.prefix} help`、{ty

BACK INTO ENGLISH

const Discord = require ("discord.js"); const fs = require ("fs"); const cmds = fs.readdirSync ("./ cmds"); const config = require ("./ config.json"); const storage = require ("./ storage.json"); const bot = new Discord.Client (); bot.login (config.token); bot.on ("ready", async () => { console.log ("Ready"

INTO JAPANESE

const Discord = require( "discord.js"); const fs = require( "fs"); const cmds = fs.readdirSync( "./ cmds"); const config = require( "./ config.json"); const storage = require( "./ storage.json"); const bot = new Discord.Client(); bot.login(config.token); bot.on( "ready"、async()=> { console.log( "準備完了"

BACK INTO ENGLISH

const Discord = require ("discord.js"); const fs = require ("fs"); const cmds = fs.readdirSync ("./ cmds"); const config = require ("./ config.json"); const storage = require ("./ storage.json"); const bot = new Discord.Client (); bot.login (config.token); bot.on ("ready", async () => { console.log ("Preparation

INTO JAPANESE

const Discord = require( "discord.js"); const fs = require( "fs"); const cmds = fs.readdirSync( "./ cmds"); const config = require( "./ config.json"); const storage = require( "./ storage.json"); const bot = new Discord.Client(); bot.login(config.token); bot.on( "ready"、async()=> { console.log( "準備

BACK INTO ENGLISH

const Discord = require ("discord.js"); const fs = require ("fs"); const cmds = fs.readdirSync ("./ cmds"); const config = require ("./ config.json"); const storage = require ("./ storage.json"); const bot = new Discord.Client (); bot.login (config.token); bot.on ("ready", async () => { console.log ("Preparation

Equilibrium found!

You should move to Japan!

HOT PARTIES

You may want to crash these parties too

1
votes
21Aug09
0
votes
21Aug09
1
votes
21Aug09
1
votes