Echo Dot (3rd Gen) - Smart speaker with Alexa - Charcoal

Use your voice to play a song, artist, or genre through Amazon Music, Apple Music, Spotify, Pandora, and others. With compatible Echo devices in different rooms, you can fill your whole home with music.

Buy Now

Wireless Rechargeable Battery Powered WiFi Camera.

Wireless Rechargeable Battery Powered WiFi Camera is home security camera system lets you listen in and talk back through the built in speaker and microphone that work directly through your iPhone or Android Mic.

Buy Now

How to Create a Chat Bot in Ruby Using Slack API

0
289


Spike Burton
Photo by Franck V. on Unsplash
source "https://rubygems.org/"gem 'slack-ruby-bot'
gem 'celluloid-io'
git init
echo ".token" >> .gitignore
require_relative '../config/environment'class MyBot < SlackRubyBot::Bot
command /.*bhellob.*$/i do |client, data, _match|
client.say(channel: data.channel, text: "hi")
end
end
require 'bundler/setup'
Bundler.require
require_relative '../lib/bot'SlackRubyBot::Client.logger.level = Logger::WARN
require_relative '../config/environment'MyBot.run
task :environment do
ENV['SLACK_API_TOKEN'] = File.read('config/.token').chomp
end
namespace :deploy do
desc 'start mybot'
task :run => :environment do
require_relative 'bin/run'
end
end

Where To Next?



Read More

LEAVE A REPLY

Please enter your comment!
Please enter your name here