Jump to content
×
×
  • Create New...

Official FivePD Discord Bot


Daniel K.
 Share

Reason for Locking
Users keep requesting support

By Daniel K., on 07/01/20 02:33 PM.

Recommended Posts

  • Development Team

Hey everyone,

The Official FivePD Discord bot is now available and can be used with the latest version of FivePD (v1.1).

Please note that this is still experimental and new features will be added in the future.
 

Default link:https://discord.com/oauth2/authorize?client_id=712773037082017915&scope=bot

Invite link: https://discord.com/api/oauth2/authorize?client_id=712773037082017915&permissions=489536&scope=bot

With admin perms: https://discord.com/api/oauth2/authorize?client_id=712773037082017915&permissions=8&scope=bot

Bug Reports: https://gtapolicemods.com/index.php?/discord-bot-bug-reports/

 

Important info & limitations
  • You can set up to 8 departments / notification type (Limit will be increased in the future)
  • Your department logo will only be synced if the length of the link is <= 85 characters
    • If it could not sync your logo, the default "911" image will be displayed
  • You can always regenerate the token by registering your server again (old tokens will become unusable)
Features
  • Displays player/server stats (FivePD stats)
  • Syncs your department name/logo
  • Sends notification:
    • On/Off duty
    • Reports/Arrest reports (with report data)
    • Callouts
    • Backup requests
    • FivePD news
    • ... and more to come soon!
Setup (Video or Text)

 

 

  1. Invite the bot to your server with this link
  2. Register your server by typing:
    !fivepd register <ip>:<port> (Example: !fivepd register 127.0.0.1:30120)
  3. Copy and paste the YELLOW TEXT into your config.json, then copy and paste the token that you've received and set it as the token. (Note: Keep the token secret)
      "Discord": {
        "enable": true,
        "token": "<yourToken>"
      }
  4. Set up notification channels
    !fivepd set <duty or backups or reports or callouts> <Department ID> (Department ID can be taken from the database) 
    (Example: !fivepd set duty 1)
  5. You can also set your local timezone by typing the following:
    !fivepd timezone <timezone> (Example: !fivepd timezone America/Chicago)
  6. To display the current config, type
    !fivepd config
Commands
  • !fivepd
    Displays all available commands (with usage info)
  • !fivepd config
    Displays the FivePD config of the current Discord guild
  • !fivepd news
    If you want to receive FivePD / FivePD Bot news/updates, type this command in the selected channel
  • !fivepd register
    Connects your server to the FivePD Bot. (Keep your token safe! You can always regenerate it by re-registering your server)
  • !fivepd set
    Sets notification channels ( can be either duty, backups, reports, callouts)
  • !fivepd stat
    Displays your stats on this server (or globally)
  • !fivepd stats
    Displays server related stats.
  • !fivepd support
    Need FivePD help? Type this command (link collection)
  • !fivepd timezone
    Sets timezone for this server. For a full list of valid timezones, click here
  • !fivepd remove
    Removes the server that is attached to this Discord server
  • !fivepd unset
    Unsets notification channels
Images
backup_request.png
Bot stats.png
Callout.png
code99.png
off_duty.png
on_duty.png
  • Like 5
Link to post
Share on other sites

8 minutes ago, Daniel K. said:

You need to add it manually.

Could you take a screenshot of what its supposed to look like? I've put it many different places and it still gives me a error saying the config.json is invalid

Link to post
Share on other sites

9 minutes ago, Shelby Modifications said:

Thats exactly how I have it and it doesnt workimage.thumb.png.7bd889fbfefd6d21bb6a19dba20b98d0.png

The bracket on line 57 has to be all the way back on the row. Just like it is under the AdminCode. And the AdminCode bracket should be pushed forward like the one on Line 50, alongside a coma after it.

Edited by Smanbg
Link to post
Share on other sites

  • Development Team
13 minutes ago, Smanbg said:

The bracket on line 57 has to be all the way back on the row. Just like it is under the AdminCode. And the AdminCode bracket should be pushed forward like the one on Line 50, alongside a coma after it.

No, he is missing a comma on line 53.

should be like

},

"Discord":{
...
}

  • Like 1
Link to post
Share on other sites

  • Ray featured and pinned this topic

Only problem I have with it is i cannot access the ingame cad unless i am in a vehicle from the F11 menu as to before i could access it even from my addon LEO vehicles

 

Edited by ZeroFallen212
forgot a word
Link to post
Share on other sites

  • Development Team
8 minutes ago, ZeroFallen212 said:

Only problem I have with it is i cannot access the ingame cad unless i am in a vehicle from the F11 menu as to before i could access it even from my addon LEO vehicles

 

It has absolutely nothing to do with your in-game CAD.

Link to post
Share on other sites

Im getting syntax error when trying to do "!fivepd set <duty|backups|reports|callouts> <Department ID>" 
Do I only change the Department ID with like 2 for example? so " !fivepd set <duty|backups|reports|callouts> <2>" ?

Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

Important Information

Please view the site: Terms of Use, Privacy Policy, and Guidelines. // IMPORTANT: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.