Giter Site home page Giter Site logo

coredumpbot's Introduction

coredumpbot

Build Status Coverage Status

Start the Bot like this:

TELEGRAM_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXX cargo run

or use our bot: https://telegram.me/CoredumpBot

Screenshot0.png

Install on Arch Linux

sudo pacman -S git cargo
git clone https://github.com/coredump-ch/coredumpbot.git
cd coredumpbot
TELEGRAM_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXX cargo run --release

Update local Client

cd coredumpbot
rm -rf target
git pull
TELEGRAM_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXX cargo run --release

Enable logging

RUST_LOG=info TELEGRAM_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXX cargo run

Set commands on Telegram

Use the @BotFather with the command /setcommands.

status - Get People now present
webcam - Get Picture of Webcam
location - Get Location of Hackerspace
subscribe - Subscribe to a Sensor with an Duration
help - Get Help
cancel - Cancel Subscription
version - Get Version of Bot

coredumpbot's People

Contributors

dbrgn avatar dns2utf8 avatar rnestler avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

duggore wirenic

coredumpbot's Issues

Subscribe to sensor

As prepared in the grammar:

Subscribe       := "subscribe" SensorSelector Duration
SensorSelector  := SensorString OptionalInteger
SensorString    := "account_balance" | "barometer" | "beverage_supply" | "door_locked" | "humidity" | "network_connections" | "power_consumption" | "temperature" | "total_member_count" | "radiation.alpha" | "radiation.beta_gamma" | "radiation.beta" | "radiation.gamma" | "people_now_present" | "wind"

Notify User on change

Let the user set a Notification Request for some time.

Example:
User sends the message:

/alert 2h

So the bot would alert the user within the next two hours about every change.

/cancel

Would abort the alerts.

Renaming Repo

Would you mind to rename the repo to something more specific (e.g.: telebot)?

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.