Added command list to /start

pull/1/head
Aaron Johnson 7 years ago
parent b78a950dda
commit 753e6f09c6

@ -13,14 +13,15 @@ Telegram::Bot::Client.run(token) do |bot|
bot.listen do |message|
case message.text
when '/start'
reply = "This bot will eventually (hopefully) be able retrieve information and pass start/stop commands from/to an Empyrion server, to make life easier for meatbags like you."
reply = "This bot will eventually (hopefully) be able retrieve information and pass start/stop commands from/to an Empyrion server, to make life easier for meatbags like you.\n\n" +
"Commands available:\n/start\n/srvstart\n/srvstop\n/status"
puts "Sending #{reply.inspect}"
bot.api.send_message(chat_id: message.chat.id, text: "#{reply}")
when '/srv-start'
when '/srvstart'
reply = "UNAVAILABLE: This command would start the game server if the code were there."
puts "Sending #{reply.inspect}"
bot.api.send_message(chat_id: message.chat.id, text: "#{reply}")
when '/srv-stop'
when '/srvstop'
reply = "UNAVAILABLE: This command would stop the game server if the code were there."
puts "Sending #{reply.inspect}"
bot.api.send_message(chat_id: message.chat.id, text: "#{reply}")

Loading…
Cancel
Save