Giter Club home page Giter Club logo

discord-bot-logger's Introduction

discord-bot-logger

Use discord as a logger

Thanks for this guide: https://realpython.com/how-to-make-a-discord-bot-python/#creating-an-application

Follow this to create bot and copy bot's TOKEN Pre-defineed configuration of the bot is at /var/log/bots/discord.cfg Log is at: /var/log/bots/discord-bot.log Run the bot:

export TOKEN=<bot_token>
python src/bot.py

At config channel on discord app. you can change the config on the fly.

DucPhamTV
 — 
02/11/2021
!cfg load_config
rasp3-monitorBOT
 — 
02/11/2021
Load config from storage{'cameras_list': [], 'interval': 10, 'cloud_nodes': ['https://duc-blogs.herokuapp.com/posts/', 'https://duc-blogs.herokuapp.com/%27]%7D
DucPhamTV
 — 
02/11/2021
!cfg load_config
rasp3-monitorBOT
 — 
02/11/2021
Load config from storage{'cameras_list': [], 'interval': 10, 'cloud_nodes': ['https://duc-blogs.herokuapp.com/posts/', 'https://duc-blogs.herokuapp.com/%27]%7D
DucPhamTV
 — 
02/11/2021
!cfg add_cloud_nodes http://192.168.1.2/
rasp3-monitorBOT
 — 
02/11/2021
Updated cloud_nodes: ['http://192.168.1.2/']
DucPhamTV
 — 
02/11/2021
!cfg set_interval 10
rasp3-monitorBOT
 — 
02/11/2021
interval has been updated to 10 seconds
DucPhamTV
 — 
02/11/2021
!cfg add_cloud_nodes http://192.168.1.2/
rasp3-monitorBOT
 — 
02/11/2021
Updated cloud_nodes: ['http://192.168.1.2/']
DucPhamTV
 — 
02/11/2021
!cfg set_interval 10
rasp3-monitorBOT
 — 
02/11/2021
interval has been updated to 10 seconds
DucPhamTV
 — 
02/11/2021
!cfg add_cloud_nodes https://duc-blogs.herokuapp.com/posts/
Duc Pham's blog
rasp3-monitorBOT
 — 
02/11/2021
Updated cloud_nodes: ['https://duc-blogs.herokuapp.com/posts/']
DucPhamTV
 — 
02/11/2021
!cfg set_interval 120
rasp3-monitorBOT
 — 
02/11/2021
interval has been updated to 120 seconds

discord-bot-logger's People

Contributors

ducphamtv avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.