Giter Site home page Giter Site logo

informateur's Introduction

L'informateur

Release the quacken!

Dumb problems require over-engineered solutions

Because I can! I know, there is are much easier solution, but who cares?!

The problem

One of my friends (for real, not imaginary) uses a crappy® Huawei™ router. And this is a router without a router! You can't bind a static local IP address to the server, but he needs it to use Octoprint. So I created this abomination!

How to use

Set up

Create .env and format it like this:

# Telegram API token.
TG_KEY="YOUR_BOT:TOKEN"

Don't forget to replace it with your real bot token!

Install packages:

sudo npm -g i pm2 && npm i

Compile TypeScript:

npx tsc

Spawn the demon!

pm2 start app.config.js

Don't forget to make demon persistent!

Usage

After starting the bot send him /start and press Became admin! button.

Yep, next step is a little bit manual

Copy your account entry from candidates.json to admins.json, Restart the bot. And voila you can ask the bot about his network configuration.

How to quack?

Send the bot /quack command or press Quack! button!

Be aware of awkward duck! Duck!

TODO

  • Make shutdown sequence
  • Redo logic of messages

Plans for the future

  • Create a service for managing multiple instances via telegram or discord bot.
  • Add some more memes!
  • Have fun!

informateur's People

Contributors

muffinking-jpeg 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.