Code Monkey home page Code Monkey logo

auto-maybe's Introduction

auto-maybe

Auto-maybe is a script which automatically replies to calandar events in google cal. I've been assured by management that replying to meeting invitations is professional and will result in larger raises. Since I disagree and find it a waste of time (google adds the events to the calendar automatically), I've wasted time to automate the replies to selected addresses.

Who knows, maybe it will pay off some day. /s

Requires google api python client and oath2client

pip install --upgrade google-api-python-client oauth2client

It currently logs to /var/log/maybe.log, which needs to be manually created

sudo touch /var/log/maybe.log
sudo chown user:group /var/log/maybe.log

Run once interactively to create credential files:

python auto-maybe.py --noauth_local_webserver

If running in cron, use something like this:

2 8 * * 1-5 /home/username/git/auto-maybe/auto-maybe.py -c '/home/username/git/auto-maybe/creators.txt' -t '/home/username/git/auto-maybe/token.json' > /tmp/auto-maybe-cron.log 2>&1

Look here for help with setting up the api.

This supports several cli arguments:

optional arguments:
  -h, --help            show this help message and exit
  -t TOKEN, --token TOKEN
                        path of token.json
  -c CREATORS, --creators CREATORS
                        path of creators.txt
  --noauth_local_webserver
  -d CRED, --cred CRED  path of credentials.json
  -r {accepted,declined,tentative}, --response {accepted,declined,tentative}
                        sets the response type that will be sent
  --random              sets the response to a random choice perfect for
                        irratating management
  -v, --verbose		logs to console
  --whatif 		logs but does not update event

auto-maybe's People

Contributors

seiniku avatar

Watchers

James Cloos 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.