-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.rb
executable file
·30 lines (29 loc) · 945 Bytes
/
bot.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env ruby
## Not Available Bot
#
## Summary
# This simple bot tells the person texting into it that there's no one here
# to chat with. Good for service interrruptions, a place holder until
# the real bot can show up, whatever.
#
## Configuration
# None.
#
## Installation
#
### Command line
# To create not available bots in a greenbot server, first add this
# to the library by NPM installing it in the greenbot core:
# `/usr/local/src/greenbot_core: npm install not-available-bot`
#
# Then, go to the library in greenbot-admin, make a new bot with it,
# and attach it to the network you would like.
#
### Portal
# From the library page of greenbot-admin, manual install not-available-bot`
#
# Greenbot.rb holds the bot library functionality, not that we need
# much of it at all. Just tell, and we could have printed that out
# to the screen.
require './lib/greenbot.rb'
tell "I'm sorry, but this bot is not currently available. "