Skip to content

longtimeno-c/MWdiscordbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install:

pip install discord httpx pillow firebase_admin

Place firebase credentials into the cogs directory under the name creds
Expected layout -> cpgs/creds.json
The file should look like:

{
    "type": "service_account",
    "project_id": "",
    "private_key_id": "",
    "private_key": "",
    "client_email": "",
    "client_id": "",
    "auth_uri": "",
    "token_uri": "",
    "auth_provider_x509_cert_url": "",
    "client_x509_cert_url": "",
    "universe_domain": ""
  }

Add file config.py into root directory.
This should contain:

TOKEN = '' #bot token
BACKEND_URL = ''
GUILD_ID = 
CHANNEL_ID = 
NOTIFICATIONS_CHANNEL_ID = 
FIREBASE_CREDENTIALS_PATH = './cogs/creds.json'

Run with pm2:

pm2 start start_bot.sh --name discord-bot

Made by @longtimeno-c

About

Missile Wars backend monitoring bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • Shell 2.1%