mirror of
https://gitlab.com/ceda_ei/pc-monitor-bot
synced 2025-03-26 02:56:51 +01:00
21 lines
783 B
Python
21 lines
783 B
Python
# Create a new bot by messaging @BotFather and follow the instructions
|
|
# Replace the key by the actual token recieved from BotFather
|
|
api_key = "123456789:xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
|
|
# User ID of the user allowed to use the bot. Replace 123456789 with
|
|
# your own user id.
|
|
master_id = 123456789
|
|
|
|
# Command to lock the screen. Replace the command with actual command.
|
|
lock = "xautolock -locknow"
|
|
|
|
# Command to check if it is running to see if the screen is locked
|
|
# Put the name of process that is running only when the screen is
|
|
# locked.
|
|
lock_process = "i3lock"
|
|
|
|
# Lock and unlock message. The date is parsed according to strftime.
|
|
# Check man strftime or http://strftime.org/
|
|
lock_message = "You have locked your system - %c"
|
|
unlock_message = "You have unlocked your system - %c"
|