app.rb 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. def new_app_embed(user_name, color)
  2. Embed.new(
  3. title: "New Appliction!",
  4. description: "Hi, #{user_name},\nI see you'd like to start a new character application!\nI'll send you instructions in a dm!",
  5. color: color
  6. )
  7. end
  8. def new_app_dm(user_name, color, code)
  9. Embed.new(
  10. title: "Hi, #{user_name}",
  11. description: "If you have any questions, please feel free to ask a Guildmaster!",
  12. color: color,
  13. footer: {
  14. text: "If you cannot copy your key, press the #{Emoji::PHONE}"
  15. },
  16. fields: [
  17. { name: "Please start your application here:", value: Url::CHAR },
  18. { name: "Your key is:", value: code }
  19. ]
  20. )
  21. end
  22. def edit_app_embed(user_name, char_name, color)
  23. Embed.new(
  24. title: "You want to edit #{char_name}?",
  25. description: "Good news, #{user_name}! I'll dm you a link",
  26. color: color
  27. )
  28. end
  29. def edit_app_dm(char_name, edit_url, color)
  30. Embed.new(
  31. title: "You may edit #{char_name} here:",
  32. description: edit_url,
  33. color: color
  34. )
  35. end
  36. def app_not_found_embed(user_name, char_name)
  37. Embed.new(
  38. title: "I'm sorry, #{user_name}",
  39. description: "I can't seem to find your character named, #{char_name}",
  40. color: Color::ERROR,
  41. fields: [
  42. { name: "Want to start a new application?", value: "You can start one with this command:\n```pkmn-app```"}
  43. ]
  44. )
  45. end