!customcommand

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}