Skip to content

Templates

Ready-made commands in Petto Code. Install one with !customcommand template <id> [name] and change it whenever you want.

Id Name What it does
hello Hello Greets the person with an embed, with their avatar
roll Dice !roll 20 rolls from 1 to 20. !roll uses 6 sides
8ball Magic 8-ball !8ball will it rain? answers like a magic 8-ball
choose Choose !choose pizza "ice cream" salad picks one. Quotes keep a phrase together
userinfo User info Name, nickname, number of roles, when they joined and their ID
serverinfo Server info Name, icon and members of the server
avatar Avatar The picture of the person who uses it, big
say Say Repeats what you write inside an embed, with your name, and deletes your message
countdown Countdown !countdown 1893456000 shows the time left until a date in unix seconds
vote Vote !vote pizza tonight? sends a yes or no vote with buttons. It counts, each person has one vote and can change it. Uses buttons and stored data
clicker Clicker A button that counts every click of the server and shows the last person who clicked
favorite Favorite A menu to pick a favorite, answered only to the person who chose
request Request !request a cake sends a card with two buttons: one to claim it, and one for whoever asked to confirm the delivery
claim Claim by reaction !claim a cake sends a request card that works with reactions: 🦋 claims it and 🎀, only by who asked, confirms the delivery
profile Profile !profile shows a card about you, with your avatar next to your name
rolebutton Role button !rolebutton @Role sends a button that gives the role, and takes it away if you already have it
reactrole Role by reaction !reactrole @Role sends a message: react with 🎀 to get the role, react again to leave it. Uses reactions
report Report !report sends a button that opens a form to report something, posted in the channel
suggest Suggest !suggest sends a button that opens a form (a modal) to write a suggestion, which is posted in the channel

Every template is checked and run with the engine every time Petto is tested, so none of them can be broken.

Write a command with !customcommand code, try it with codetest, and share it with !customcommand export. A share code works in any server. If you made something other servers could use, tell the team on the support server: good ones can become templates.