Code Monkey home page Code Monkey logo

evoalert's Introduction

UPDATE: This will no longer work for alerting of EVO patch notes dropping.

Previously, Evocati patch notes were quickly posted on Pastebin. However, that user now uses her Discord channel for this. I now use a browser userscript for alerting on MOTD updates. See https://github.com/talzahr/spectrumMOTDalert

Evocati Alert Script for New Build Notification

This script is meant for Star Citizen Evocati testers to know when a new build is ready.

Checking the MOTD can be anoying at times. So why not automate this? Calling the GetMOTD JSON from Spectrum is very cumbersome and requires multiple steps, done in order, while logged into Spectrum. That method was not very good. Unfortunately, soon after a new NDA patch note is published, it is leaked to the public within minutes. While I completely disapprove of not respecting the NDA, it is convenient for the purposes of this alert BASH script.

What this Script Does

On a configured timed loop, the script will retreive the Pastebin user index page of an egregious patch note leaker. When it sees a post title referring to Evocati, the paste key is compared with recorded keys. If there is not a match, then the user is alerted by audio file and STDOUT message. The option to read the raw patch note is also made available.

How to Install

Simply git clone this repo and run the shell script as any other outside of the system path, with ./evoalert.sh

The script is configured to run directly from a user's home tree. However, just change the config variables at the head of the script to change locations of the audio file and log if, say, you want to install it into /usr/local/bin. At a later date I may include a setup and install script.

How to Use

First, look over the configuration variables at the head of the evoalert.sh file, at the very least the general and audio sections. You'll need to provide your own audio file and insert its location into the audioFile variable. I can't include the one I use due to distribution license restrictions.

Then run ./evoalert.sh. For now you have to SIGINT (ctrl-c) out of the main loop to exit script.

For Cygwin64 users: This was tested in Cygwin on Windows 10 and works fine. However, you may want to increase the priority of the Windows Command Processor that Cygwin uses to a level of at least high. Otherwise Windows may cause the main loop to freeze if it dedicates system resources away.

License

MIT License, see LICENSE.

TO DO

  • An open license audio file
  • User-customizable colors
  • Maybe an install and config script for the important options
  • More ANSI escape sequences, because they're great
  • Main loop in its own subshell so the user can input keys while it runs and change settings realtime

Simple script so didn't add too much. Just fun to do. :D

evoalert's People

Contributors

talzahr avatar

Watchers

 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.