This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param() | |
#Modified from original script https://herringsfishbait.com/2015/03/06/powershell-recording-process-run-time-or-how-long-have-i-played-that-game-for/ | |
<# THESE ARE THE BITS YOU CHANGE #> | |
# Where the Output File Goes | |
[string]$DataFilePath="$env:userprofile\Documents\GamePlayTimes.csv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import json | |
import string | |
import sys | |
import ConfigParser | |
import tweepy | |
def craftTweet(match_id, level, hero, kills, deaths, assists, result, lobby): | |
unformatted = '{} some {} Dota as Lv{} {} KDA: {}/{}/{} #dotabrag\nDotabuff: {}' |