Coder Social home page Coder Social logo

the-engine's Introduction

The-Engine

Design

What am I doing?

Something I'd like to call a bot. This will always be active when my Linux is booted up (maybe deploy on an RPi later)

  • It should do on demand activities.
  • It should also push timely notifications.

How will I do it?

  • A frickin backend server on Golang -> packed as a docker image.
  • Multiple modules attach and listen on.
  • A notification queue (data will be pushed to it, it'll doll it up and send out to the user) (Use channels!)
  • Should scrape the web for data / hook on to APIs / webhooks.
  • Should know what time it is rn. Obviously.

What should I keep in mind?

  • Should be extremely lightweight. (How? Maybe run benchmarks and mem logs)
  • Should be fast. (Go will handle it?)
  • Should adapt and be modular.

What will it do?

  • Take input for a command, return a popup notification on the screen / push notifications.
  • Types of "taking commands in" :
    • A curl command to a general API endpoint of The Engine.
    • Periodic updates.
  • Inputs can come from:
    • Reddit
    • The web in general
    • My email (maybe google API?)
    • ....
  • Log all notifications!
  • Should know what devices are online (when its implemented remotely) and push notifications to those/ all or some, as desired. Client in device is necessary.
  • Play media! Find a structured way for input queries. Say "Play House MD S1 E2"

Implementation

  • A good notification pusher for ubuntu - https://www.maketecheasier.com/desktop-notifications-for-linux-command/
  • Since I want to make concurrent command processing, some kind of garbage collection should happen based on the timestamps of the commands running.
  • Above demand needs to have a well structured logger of all the commands being run and must be able to cancel them, report their errors. (maybe use context?)

How to start

  • Install docker
  • Pull the redis docker image - docker pull redis; use sudo if necessary.
  • Start the docker image docker run -p:6379:6379 --name The-Engine-Redis -d redis
  • Restarting is docker restart The-Engine-Redis

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.