Discord bot for any Nitrado game server
Project description
Nitrado Discord bot
Prerequisites
You need to have following before you proceed with the instructions:
- Virtual machine (VM) or server somewhere in the Internet.
- Discord account (register or login at https://discord.com/).
- Any Discord server where you have access.
- Nitrado account (register or login at https://server.nitrado.net/en-GB/).
- Any game server that runs on Nitrado to which you have access.
Installation
- Login to your VM or server via SSH.
- Install Python 3.x. Do this only if Python is missing or very old. You don't need to have latest Python version for this bot.
- Install this bot as Python package via pip:
pip install nidibot
- Or upgrade already installed bot:
pip install nidibot --upgrade
Configuration
- Login to your VM or server via SSH.
- Create new folder for storing bot files.
- Proceed to the folder.
- Call following command for initializing bot in this folder and create default configuration files:
# Ubuntu/Linux only.
python3 -c 'from nidibot.nidibot import Nidibot; Nidibot.initialize_folder()'
- Following files should appear.
- Open bot_configuration.json file in any text editor and modify required values to your own:
{
"controller": {
"discord": {
"token": "your-discord-bot-token",
"privileged_users": []
}
},
"server_provider": [
{
"type": "nitrado",
"token": "your-gameserver-api-token"
}
],
"storage": {
"type": "google-drive",
"token": "your-storage-token"
}
}
- Install nidibot service, so it will start automatically every system restart.
sudo cp nidibot.service /etc/systemd/system/nidibot.service && sudo systemctl daemon-reload && sudo systemctl enable nidibot.service
- Start newly installed service:
sudo systemctl start nidibot.service
- Check service status:
sudo systemctl status nidibot.service
Project details
Release history Release notifications | RSS feed
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.8.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for nidibot-1.0.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860acf836b66b368d0f58fb89de26c442fb8000979d46a3f34873b58572c10c0 |
|
MD5 | e841f5593455c11dd55af0ff4a3420b2 |
|
BLAKE2b-256 | 27e239ac320ab64cf9d0e65837b1e042a4c528c7fd800baa4bf8f6695f24f8d0 |