Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. bot.on("message", async msg => {
  2. if (!msg.author.bot == true) {
  3. if (msg.content.toLowerCase().startsWith(prefix)) {
  4. var args = msg.content.substring(prefix.length).split(" ");
  5. switch (args[0].toLowerCase()) {
  6. case "ticket":
  7. if (!args[1]) {
  8. if (msg.channel.type == "dm") {
  9. } else {
  10. msg.channel.send(
  11. "This prompt will continue in your direct messages."
  12. );
  13. }
  14. var user = msg.author;
  15. DMembed(
  16. msg,
  17. "Ticket",
  18. "Please select one of the following and include a description: `" +
  19. prefix +
  20. "ticketmoderation`, `" +
  21. prefix +
  22. "ticketdevapp`, `" +
  23. prefix +
  24. "ticketmodapp`, `" +
  25. prefix +
  26. "ticketapp-to-be-checked`",
  27. "#ffc0cb",
  28. user
  29. );
  30. }
  31. }
  32. }
  33. }
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement