Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.on("message", async msg => {
- if (!msg.author.bot == true) {
- if (msg.content.toLowerCase().startsWith(prefix)) {
- var args = msg.content.substring(prefix.length).split(" ");
- switch (args[0].toLowerCase()) {
- case "ticket":
- if (!args[1]) {
- if (msg.channel.type == "dm") {
- } else {
- msg.channel.send(
- "This prompt will continue in your direct messages."
- );
- }
- var user = msg.author;
- DMembed(
- msg,
- "Ticket",
- "Please select one of the following and include a description: `" +
- prefix +
- "ticketmoderation`, `" +
- prefix +
- "ticketdevapp`, `" +
- prefix +
- "ticketmodapp`, `" +
- prefix +
- "ticketapp-to-be-checked`",
- "#ffc0cb",
- user
- );
- }
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement