var gulp = require('gulp'),
sass = require('gulp-sass'),
notify = require('gulp-notify')
connect = require('gulp-connect');
...
gulp.task('default', function(){
gulp.watch('./css/sass/*.sass',['sass']);
gulp.watch('./css/sass/skins/*.sass',['sass']);
gulp.watch('./index.html',['sass']);
//gulp.pipe(notify('ok'));
});
# frozen_string_literal: true
source "http://rubygems.org"
gem "telegram-bot-ruby"
require 'telegram/bot'
TOKEN= '599095076:AAEGNdh91izrNbfCTMqsdIBdeEMbSTYujk'
ANSWERS = [
"Привет",
"Пока",
"Rkjey",
"Пупсик",
"Давай до свиданья"
]
Telegram::Bot::Client.run(TOKEN) do |bot|
bot.listen do |message|
case message.text
when '/start'
bot.api.send_message(chat_id: message.chat.id,
text: "Здравствуй, #{message.from.first_name}"
)
else
bot.api.send_message(chat_id: message.chat.id,
text: ANSWERS.sample
)
end
end
end