Tutorials_for_BDFD

suggestsystem

Sep 7th, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Variablen :
  2.  
  3. suggest = none
  4.  
  5. anonymous
  6.  
  7. ____Code 1_____
  8. Trigger :!set-suggest
  9.  
  10. Code :
  11. $nomention
  12. $onlyPerms[manageserver;❌〣│You need `MANAGE_SERVER` permission to use this command]
  13. $onlyIf[$mentionedChannels[1]!=;❌〣│Erwähnen Sie einen Kanal, der als Vorschlagskanal festgelegt werden soll]
  14. Setzen Sie den Vorschlagskanal erfolgreich auf <#$mentionedChannels[1]>, alle Vorschläge werden nun dorthin gesendet
  15. $setServerVar[suggest;$mentionedChannels[1]]
  16.  
  17. ____Code 2_____
  18. Trigger : !anonymous
  19.  
  20. Code :
  21. $nomention
  22. $suppressErrors
  23. $onlyPerms[manageserver;❌〣│You need `MANAGE_SERVER` permission to use this command]
  24. $onlyIf[$checkContains[$toLowercase[$message];enable;disable]==true;You can enable or disable anonymous suggestions with `<prefix>anonymous enable / disable`]
  25. $if[$toLowercase[$message[1]]==enable]
  26. $setServerVar[anonymous;on]
  27. Successfully enabled anonymous suggestions, now no one knows who suggested
  28. $else
  29. $if[$toLowercase[$message[1]]==disable]
  30. $setServerVar[anonymous;off]
  31. Successfully disabled anonymous suggestions, now everyone knows who suggested
  32. $endif
  33. $endif
  34.  
  35. _______Code 3_______
  36. Trigger : !suggestion
  37.  
  38. $nomention
  39. $onlyIf[$getServerVar[suggest]!=none;❌〣│If you haven't set up a suggestion channel yet, define one with `<prefix>Set-channel <#channel>`]
  40. $useChannel[$getServerVar[suggest]]
  41. $argsCheck[>1;Give something to suggest]
  42. $if[$getServerVar[anonymous]==off]
  43. $authorIcon[$authorAvatar]
  44. $author[$username#$discriminator[$authorID]]
  45. $title[New proposal!]
  46. $description[$message]
  47. $footer[membership number: $authorID]
  48. $color[FFF000]
  49. $addReactions[🔼;🔽]
  50. $endif
Advertisement
Add Comment
Please, Sign In to add comment