Skip to content

Commands

Jedddy edited this page Apr 12, 2023 · 38 revisions

ProgPH Bot Commands

Categories:

Bracket meanings:

<> - required
[] - optional

Announcements

/announce

/announce <channel> <submission_type> [photo=None] [mention=None]

Sends an announcement to a specified channel.
If the `mention` parameter is used, you will have to format your announcement with any of the following tags:
-------------------------------
$user - Users
$role - Roles
$channel - Any kind of channel
@everyone - To mention everyone
-------------------------------
Example:

"Hello everyone, please check out $channel"

Then after you submit your modal, you'll get prompted to choose the roles/members/channels you want to mention. For the command to work properly as intended, only select the correct number of tags written in your announcement modal.
Based on the example above, you should only pick the correct amount of channels  and it'll get automatically converted to a discord channel mention.
You can have more than 1 type of tag if you wish.

/shout
/shout <channel> <message>

Sends a one line announcement to the specified channel.

AutoResponder

/add

/responder add <response_type>

Adds a trigger message and a response message for the auto responder feature.
Response Types:
-------------------------------
reply - The bot will reply when responding to the trigger
regular - The bot will send a regular message when triggered
-------------------------------

/all
Views all trigger message and their respective responses.

/delete
Deletes triggers from the database, the bot will send a selection view for the user to freely pick the trigger they want to remove.

Trivia


/setup
/trivia setup <channel> <schedule>

Sets up the trivia module, this command can only be used once

/toggle
/trivia toggle

Toggles the feature to turn ON or OFF.

/schedule
/trivia schedule <schedule>

Updates the schedule of the trivia message, can't be used if the trivia module is not set up. Time is at 24hour format

/channel
/trivia channel <channel>

Updates the channel of the trivia message, can't be used if the trivia module is not set up.

/config
/trivia config

Shows the current trivia configuration

AutoTagging

/add

/tagging add

Adds auto tags to the database, a view with 2 selection items will pop up. You will pick which roles/users u want to add to the auto tags.

/message
/tagging message

Add/Update a message on a tagging forum.

/custom_messages
/tagging custom_messages

Views all custom messages saved on the database.

/all
/tagging all

Views all auto tags saved on the database.

/toggle
/tagging toggle

Toggles the feature to turn ON or OFF.

/remove
/tagging remove <entry_id>

Removes an auto tag from the database.

You can get the entry id when you do /tagging all

Define

This command was made possible by this API
word

pph-define word <word>

Returns the definition of a given word. If given word has more than one definitions, returns all definitions

/toggle

/define toggle

Toggles the command on or off. Only accessible to Admins

JobHiring

/config

/hiring config

View the configurations for job hiring feature

/toggle

/hiring toggle

Turns the feature on/off.

/setup

/hiring setup

Setup the feature for the bot, (You may have to do this several times if you try to do a Once Only schedule.

/channel

/hiring channel

Changes the channel to send the job hiring posts to.

/schedule

/hiring schedule

Changes the schedule of the job hiring posts.

There will be 3 types of schedules to choose from.
- 1. Every day at a specific time.
- 2. Once on a specific day (will delete the setup after it gets sent. so make sure to setup before using again.)
- 3. Recurring

-------------------------------
1. Every day at a specific time.
    The format should be HH:MM

2. Once on a specific day.
    The format should be MM/DD/YYYY

3. Recurring.
    This is a bit tricky, but you can do something like 1d1h1m (1 day 1 hour and 1 minute)

    Here are the supported labels:
        s - second(s)
        m - minute(s)
        h - hour(s)
        d - day(s)
        wk - week(s)
        mt - month(s)

AnonymousPosting

/post

/anon post

Post anonymously to a certain allowed channel.
You will get a UUID pointing to your post. So make sure not to lose that.

/reply

/anon reply <uuid>

Reply anonymously to a certain post.

/toggle

/anon toggle

Toggle the feature.

/forums

/anon forums <action>

Do something with forums, it can be:
Add: Add allowed forums to for posting.
Remove: Remove a certain forum from allowed forums.
View All: View all allowed forums.

/setlogs

/anon setlogs <channel>

Set a channel as a logging channel for this feature.
Clone this wiki locally