Giter Site home page Giter Site logo

modjamscripts's Introduction

#ModjamScripts Some scripts to use in your stream with Modjam!

Sorry. There is no script (yet) for people who use bitbucket. They can simply disable the github lookup. ##Prerequisites

####For streamScript None!

###For commitScript Only that you have Git installed and in your PATH. I don't know if Github for windows does this!

##Install ###For streamScript Checkout the python-github3 and install that.

Place the streamScript.py in the directory where you want your files to be generated.

###For commitScript Place it in a directory. Doesn't really matter.. (Not even in the end!)

##Config ###For streamScript Just edit the streamScript.py file. Lets take this github URL:

https://github.com/K-4U/ModjamScripts

Your config would be this:

nameOfRepository = "ModjamScripts"
nameOfUser = "K-4U"

If you don't want to check github every x minutes, set "checkForCommits" to False.

Note: As of now there is no option of where to place the textfiles!

###For commitScript You only need to edit the path where your working copy is located.

For windows users: Use forward slashes. So if your working copy is on

E:\Repositories\Modjam\

Your config will be this:

repoDir = "E:/Repositories/Modjam"

There's also a print_debug. Set this to false if you don't want the script to print out messages about which files have changed.

##Usage ###For streamScript Just run the script with python:

python streamScript.py

Please take note that the Github API only allows for 60 requests every hour (per IP)! Do not change the timer at the bottom!

###For commitScript The same. Just run the script with python:

python commitScript.py

It'll print out the time that is left before making a commit. It will do this in minutes!

##Example

##Disclaimer: I am in NO way responsible if either of these scripts fails and stops autocommitting! I do suggest you still commit some code yourself, and check if the script runs. It has only been tested for about 15 minutes.. So i have no idea how it behaves when it runs 96 hours straight! If it blows up your pc, i have NOTHING to do with it! Also, in case of rogue AI, shout "This sentence is false!" to confuse it.

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.