11 releases

0.3.8 May 5, 2021
0.3.7 Apr 23, 2021
0.3.6 Mar 28, 2021
0.3.0 Feb 19, 2021
0.1.0 Feb 6, 2021

#2 in #beer

Download history 3/week @ 2024-11-27 28/week @ 2024-12-04 16/week @ 2024-12-11 2/week @ 2024-12-18 2/week @ 2024-12-25 9/week @ 2025-01-01 3/week @ 2025-02-05 12/week @ 2025-02-12 9/week @ 2025-02-26

61 downloads per month

AGPL-3.0-or-later

37KB
227 lines

Table of Contents

  1. Commands
  2. Building & Running

A Telegram bot that holds your beer

Crates.io

pipeline status

Commands

  • /beer <text>

    Ask the bot to hold your beer. The text you give it will be associated with that beer in the future.

  • /ontap

    See what's on tap.

  • /quaff <number>

    Drink the beer with the given number. Numbers will be displayed by the /ontap command.

  • /corn

    Harvest some corn.

  • /count

    Get the current count of stored beers for this tap.

  • /yasd

    Die stupidly.

Building & Running

This project is managed with Cargo, so just build it with cargo build and whatever flags you want.

To run it, grab an API token from @BotFather on Telegram, and store it in an environment variable called TELOXIDE_TOKEN. Then just cargo run or execute the binary directly.

Dependencies

~20–33MB
~401K SLoC