Skip to main content

Discord bot for any Nitrado game server

Project description

Nitrado Discord bot

Prerequisites

You need to have following before you proceed with the instructions:

  1. Virtual machine (VM) or server somewhere in the Internet.
  2. Discord account (register or login at https://discord.com/).
  3. Any Discord server where you have access.
  4. Nitrado account (register or login at https://server.nitrado.net/en-GB/).
  5. Any game server that runs on Nitrado to which you have access.

Installation

  1. Login to your VM or server via SSH.
  2. Install Python 3.x from https://www.python.org/downloads/ or via following command (only if it is missing or very old):
sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt update && sudo apt install python3.12 -y && sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
  1. Install following packages (Ubuntu/Linux only):
sudo apt install libffi-dev libnacl-dev python3-dev -y
  1. Install Discord Python package:
pip install -U discord.py
  1. In case if you meet "externally-managed-environment" error under Python 3.11 version, then run following command:
# Ubuntu/Linux only.
sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old
  1. Install this bot as Python package via pip:
pip install nidibot
  1. Or upgrade already installed bot:
pip install nidibot --upgrade
References used (click to show):

Configuration

  1. Login to your VM or server via SSH.
  2. Create new folder for storing bot files.
  3. Proceed to the folder.
  4. Call following command for initializing bot in this folder and create default configuration files:
# Ubuntu/Linux only.
python3 -c 'from nidibot import Nidibot; Nidibot.initialize_folder()'
  1. Following files should appear.
  2. Open bot_configuration.json file in any text editor and modify required values to your own:
{
    "connection": {
        "discord_bot_token": "your-discord-bot-token",
        "nitrado_api_token": "your-nitrado-api-token"
    },
    "discord_admin_users": []
}

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

nidibot-1.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

nidibot-1.0.1-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nidibot-1.0.1.tar.gz.

File metadata

  • Download URL: nidibot-1.0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for nidibot-1.0.1.tar.gz
Algorithm Hash digest
SHA256 accf6f73ea4c4fa6c2d0e58944e5526e94c585114419b8aaba9ba634223146db
MD5 7c12a5260e1e9ca7262c614e8ab9d328
BLAKE2b-256 195aab19be1c15386c458dfc6555d2ab78b0d7c8b5b79e045c46be4e759a57e1

See more details on using hashes here.

File details

Details for the file nidibot-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: nidibot-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for nidibot-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e4f07bc5ef32eacdfbb51e70f05a3569a9191830320952b65afdc82758f83028
MD5 2dad95e6b7752e2a9e5911ed10e0e741
BLAKE2b-256 9c4d39de81ee1c66bce18fddf7300ad545b243aaeac5e9165b09ad4936619987

See more details on using hashes here.

Supported by

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