In a group with Pythbots active - enter !customcommand in the chat to create custom commands for your bot.
Type !customcommand hi Hello {regname}! to create a command. When users type !hi, the bot will reply βHello username!β
!customcommand list will display all your current custom commands.
!customcommand rem hi will remove the command named hi. You can also use remove, delete, or del.
Command names can only contain letters, numbers, -, and . Example: !customcommand my-command Hello
Custom commands automatically use your bot prefix. If you change your prefix from ! to $, then $hi will trigger the command.
π Basic Usage
- !customcommand <name> <reply> creates or updates a command
- !<name> runs the command
Example:
!customcommand say You said: {input}
User types:
!say hello world
Bot replies:
You said: hello world
π Dynamic Tags (Placeholders)
- {regname} β Userβs name
- {id} β User ID
- {rank} β User rank (guest, member, mod, owner)
- {chatname} β Chat name
- {count} β Number of users online
- {input} β What the user typed after the command
- {time} β Current time
- {date} β Current date
- {latest} β Latest power name
Example:
!customcommand info {regname} ({id}) | Rank: {rank} | Chat: {chatname}
π² Random Tags
- {randomnumber} β Random number (1β100)
- {randomnumber:min-max} β Custom range
Examples:
!customcommand roll You rolled {randomnumber}
!customcommand dice Dice: {randomnumber:1-6}
π₯ Random User Tags
- {randomname} β Random username
- {randomreg} β Random registered name
- {randomnameunique} β Random unique username
- {randompoke} β Random user to target
Example:
!customcommand pick Selected: {randomname}
π΅ Radio Tag
- {radio;ID} β Displays current song from a radio stream
Example:
!customcommand song {radio;1}
Output:
π΅ Now Playing: Artist - Song Name
π‘ Discord Webhook Tag
- {discord;WEBHOOKID/TOKEN}
- {discord;WEBHOOK_ID/TOKEN;Title}
Example:
!customcommand report {discord;123/abc;New Report}
π Extra Useful Tags
- {command} β Command name
- {timestamp} β Current timestamp
Example:
!customcommand poke {regname} pokes {randompoke}
βοΈ Behavior & Permissions
- Only the bot owner can create/remove custom commands
- By default, everyone can use them
- Commands follow your bot permission system
- Replies are sent in main chat, PC, or PM depending on context
β οΈ Important Notes
- {regname} is the safest username tag to use
- {username} may not work in all setups
- Commands cannot overwrite built-in bot commands
- Radio/Discord tags require working APIs
π₯ Example Commands
!customcommand hi Hello {regname}!
!customcommand say You said: {input}
!customcommand dice {randomnumber:1-6}
!customcommand online Users: {count}
!customcommand where You are in {chatname}
!customcommand rank {regname}, you are {rank}
!customcommand song {radio;1}
!customcommand poke {randompoke}