Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.03 KB

Readme.md

File metadata and controls

30 lines (26 loc) · 1.03 KB

CFX Status Bot

Python Bot that will show the current CFX Status

Screenshot_213

Python for Debian/Ubuntu

  • sudo apt install python3
  • sudo apt install python3-pip
  • pip install discord.py requests

Execute Bot

  • screen -S CFXStatusBot (if you get an error then do: sudo apt install screen)
  • cd /folder-where-the-file-is-located/
  • python status.py

Hotkeys

  • Strg+A+D to exit the screen
  • screen -r CFXStatusBot to enter the screen again
  • Strg+C to stop the bot inside the screen

Config

Please do not add the Comments in the config.json or you will break the script

{
  "token": "MTA1NTYxNzA4OTk1MzU5", // Bot Token
  "refresh_interval": 60, // Refresh interval in seconds
  "channel_id": 112468829, // Channel ID where the Message will be sent
  "edit_channel_name": true, // Set false if you don't want to edit the channel
  "channel_name": "cfx-status" // Channel name that will be set after starting the Bot
}