crystowl-nest

Version, currently master branch1 version
  • master branchlatestJul 5, 2020

github.com/Hadeweka/crystowl-nest

A telegram bot for a shopping list

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  crystowl-nest:
    github: Hadeweka/crystowl-nest
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.35.0
License
MIT
Author
Hadeweka
Target
  • crystowl-nest from src/crystowl-nest.cr

Dependencies

Runtime Dependencies

  • tourmaline*github: protoncr/tourmaline, branch: master

README

crystowl-nest

Crystowl-Nest is a telegram bot which implements a shopping list.

Installation

Install crystal, download the repository and then execute the following commands in the folder:

shards install
crystal build src/crystowl-nest.cr

Usage

Run the program using:

./crystowl-nest XXX:XXX CONFIG_NAME

Replace XXX:XXX with the Telegram bot API key and CONFIG_NAME with the name of your configuration.

Make also sure to create a whitelist with the following content:

---
content:
  XXXXXXXXX : true
  YYYYYYYYY : true

Save it as whitelist_CONFIG_NAME.yml in a folder called configs.

Here, XXXXXXXXX and YYYYYYYYY are Telegram user IDs of users you want to allow access to the bot. You can get these IDs by sending a /register command to the bot and checking the command line standard output.

Currently, the bot texts are written in German. To translate them, edit them in src/crystowl-nest.cr to your liking.

Features:

  • [X] Shopping list creator
  • [X] Whitelist
  • [X] Checklist
  • [X] Cache

Contributing

  1. Fork it (https://github.com/Hadeweka/crystowl-nest/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors