chphoto

command module
v0.0.0-...-4b68115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

README

chphoto

This simple program allows you to change profile pictures on the YK Pao School outlook directory.

Authentication

Please run without -passvar when using for the first time, as interactive authentication is required for the application to receive consent. Subsequent runs may use pasword authentication, for example, for automation purposes.

Usage

Usage of ./chphoto:
  -email string
    	(required) username@ykpaoschool.cn
  -passvar string
    	environment variable containing the password
  -photo string
    	(required) path to avatar

Note on daily reset

The profile pictures are reset approximately every day. Use a cron job, or otherwise run this script frequently, to make the change persist.

0 * * * * $HOME/cronstuff/chphoto.sh
cd $HOME/cronstuff/
pass=XXXXXXXXXXXXXXX ./tooch/chphoto/chphoto -passvar pass -email sXXXXX@ykpaoschool.cn -photo ./tooch/chphoto/sjdb-avatar.png

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL