Skip to main content

Discord bot that provides DayZ RCon capabilities and cross chat

Project description

carim-discord-bot

A simple Discord bot that can communicate with BattlEye via RCon. Support can be found in the Carim Discord.

Table of Contents

Install

  1. Install Python 3.7 or 3.8
  2. Run pip3 install carim-discord-bot
  3. Run carim-bot --setup and follow the instructions

Alternatively, you can deploy using Heroku.

Update

  1. Run pip3 install carim-discord-bot -U
  2. Run carim-bot --setup configuration to see if any options have changed
  3. Update your configuration file accordingly
  4. Restart the service if you have one

Features

  • Log RCon communication to Discord
  • Send RCon commands to the server via Discord
  • Schedule RCon commands to be executed by relative time or aligned with the clock
  • Skip the next instance of a scheduled command
  • Perform safe shutdowns of the server, including kicking players and locking
  • Establish cross-chat that links the in-game chat and a Discord channel

Usage

commands:
--help                     displays this usage information
--about                    display some information about the bot
--version                  display the current version of the bot

admin commands:
--command [command]        send command to the server, or list
                           the available commands
--shutdown [seconds]       shutdown the server in a safe manner
                           with an optional delay; notice messages
                           are broadcasted to the server at
                           60, 30, 20, 10, 5, 4, 3, 2, and 1 minute
                           until shutdown
--status                   show current scheduled item status
--skip index               skip next run of scheduled command
--kill                     make the bot terminate

Examples

--command "say -1 Hello everybody!"
# this sends a message to everybody on the server
# notice the quotes around the command

--command players
# gets a list of currently connected players

--shutdown 3600
# schedules the server to be shutdown in an hour

Scheduled Commands

Examples

Send a global server message every 5 minutes

{
  "command": "say -1 Hello everybody!",
  "interval": 300
}

Shutdown the server every 3 hours starting at 00:00

{
  "command": "safe_shutdown",
  "delay": 3600,
  "interval": 10800,
  "with_clock": true,
  "offset": 3600
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carim-discord-bot-2.2.4.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carim_discord_bot-2.2.4-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file carim-discord-bot-2.2.4.tar.gz.

File metadata

  • Download URL: carim-discord-bot-2.2.4.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for carim-discord-bot-2.2.4.tar.gz
Algorithm Hash digest
SHA256 bff27cee31dfade2f08dae3fae202b0908966fda884fa430bc3f62ce87e4497b
MD5 f8054ebb16613ed53e9694bcba161acc
BLAKE2b-256 81484ea3059c3726d82a361d0bda1390655da1f10b3f6024f4a454a8cc237791

See more details on using hashes here.

File details

Details for the file carim_discord_bot-2.2.4-py3-none-any.whl.

File metadata

  • Download URL: carim_discord_bot-2.2.4-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for carim_discord_bot-2.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71559e70fa59646d2fcf9d33f09ad80822b2208abbab281ed11b0f7c38859243
MD5 4b2c189126ebb4b85d43764d9f530376
BLAKE2b-256 f9ce28edd2062c5119da0fb0b5d3a31d34c2601eca17fb31a5997f9f21256edb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page