Skip to content

Small discord entity who DM status messages of my local services.

Notifications You must be signed in to change notification settings

chocorp-net/chocobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chocobot

Small piece of Rust code which sends a Discord dm whenever one of my service crashes.

Config

This code uses three environment variables to work, DISCORD_OWNER_ID, DISCORD_TOKEN and LOCAL.

  • DISCORD_OWNER_ID is the UUID of the one who will receive DMs.
  • DISCORD_TOKEN is the bot Discord token. See Discord developers doc.

My services are running on Raspberry PIs, and if the code is running inside the same network, I would rather use their local IP address. If LOCAL is set, the local IP addresses will be used instead of domain names.

About

Small discord entity who DM status messages of my local services.

Topics

Resources

Stars

Watchers

Forks

Languages