Skip to content

Instantly share code, notes, and snippets.

@watzon
Created June 17, 2019 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watzon/d18b91136499f6b30ff068acb141be5d to your computer and use it in GitHub Desktop.
Save watzon/d18b91136499f6b30ff068acb141be5d to your computer and use it in GitHub Desktop.
Files for Tourmaline docker container
name: tourmaline-bot
version: 0.1.0
authors:
- Your Mane <your@email.me>
crystal: 0.28.0
dependencies:
tourmaline:
github: watzon/tourmaline
license: MIT
require "tourmaline"
bot = Tourmaline::Bot::Client.new(ENV["API_KEY"])
bot.command("echo") do |message, params|
text = params.join(" ")
bot.send_message(message.chat.id, text)
bot.delete_message(message.chat.id, message.message_id)
end
bot.poll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment