pewniak747 / hipbot Goto Github PK
View Code? Open in Web Editor NEWHipChat bot written in ruby and eventmachine
License: MIT License
HipChat bot written in ruby and eventmachine
License: MIT License
running the example code on the page i get this error:
C:/Ruby24/lib/ruby/gems/2.4.0/gems/hipbot-1.0.4/lib/hipbot/bot.rb:22:in
class:Bot': uninitialized constant Hipbot::Bot::Singleton (NameError)
Did you mean? SignalException
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/hipbot-1.0.4/lib/hipbot/bot.rb:19:in <module:Hipbot>' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/hipbot-1.0.4/lib/hipbot/bot.rb:1:in
<top (required)>'
from C:/Ruby24/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in require' from C:/Ruby24/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in
require'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/hipbot-1.0.4/lib/hipbot.rb:29:in <top (required)>' from C:/Ruby24/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in
require'
from C:/Ruby24/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in rescue in require' from C:/Ruby24/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in
require'
`
Last version of hipbot on Ruby 2.4, Windows 10
Hello,
I am trying to set this up but I am only able to talk to the bot in a one on one chat,
but not in a room.
I setup a private room, with permissions for the bot, and I tried with the bot full name and mention nickname, bu with no luck...
Any idea what I'm doing wrong ?
Thx.
Hello,
I have some time again to work with hipbot and I'm trying to send messages with href elements in them.
So I can give a specific text to click on, with a URL behind it..
But it seems to show the URL completely.
Output:
test
So I want it to show test as a link, and nothing else...
Any ideas on this ?
Thx.
Hello,
I'd like to be able to send a message at a specific time rather than wait for a response
e.g.
at '9am' do
reply("Good Morning Everyone!")
end
Is this possible?
Hello,
Do you think it would be a nice feature to incorporate a configuration for an alias to the bot ?
That way, you can call the bot with that alias as well, and not only with the mention name..
Something like:
/help
instead of
@bot_name
Thanks.
If multiple messages are sent from the bot in one response, they are delivered to the clients in unpredictable order:
AS IS:
reply("test 1")
reply("test 2")
reply("test 3")
clients see:
test 2
test 3
test 1
Should be:
clients see:
test 1
test 2
test 3
This is important when sending multi-line messages (statuses with headers etc.)
i don't think the 1.0.3 version has been bumped since january of 2014?
Hello,
Would it be a good idea to provide an extra method like 'desc' but to give an alternative readable 'command' if present ?
An example of what I mean:
desc 'Lists Jenkins jobs, optionally with a filter'
readable_command 'jenkins list <filter>'
on /jenkins list\S?(.*)/ do |filter|
end
This would provide a way for presenting to the user a functional description of what a specific command does..
Does this look like a good suggestion or not ?
I'm trying to write a custom plugin that inherits from Hipbot::Plugin.
I have an initialize block but when it responds to a message, the instance variables are null...
How can I use instance variables in a plugin class that can be used in multiple queries to the bot ?
class GithubPulls < Hipbot::Plugin
def initialize(*args)
super
@github = Github.new :oauth_token => "foo"
puts @github # appears to be an instance here
end
on /github show pulls/ do
puts @github # appears to be null here
end
end
I keep getting this error when I try to run bot.rb . I get undefined method when I try to set any of the configure properties.
bot.rb:
require 'hipbot'
class MyBot < Hipbot::Bot
configure do |c|
c.jid = 'Username'
c.password = 'Password'
end
on /^hello$/ do
reply("Hello!")
end
end
MyBot.start!
Add ability to extract responses into self-contained and redistributable plugins:
class HipbotGreeter < Hipbot::Plugin
on(/hello/) do
reply("Hello!")
end
end
require 'hipbot-greeter'
class MyHipbot < Hipbot::Bot
configure do |c|
c.plugins = [HipbotGreeter]
end
end
Is there functionality for detecting when a new user joins and responding to them automatically? Or being able to tell if they are a real user or 'guest'?
[timestamp][MESSAGE] message text
[timestamp][REACTION] reaction id
[timestamp][REPLY] reply text
[timestamp][HTTP-REQUEST] request details
[timestamp][HTTP-RESPONSE] response details
why does it need to do this? It take like 20 minutes and then gives me an error.
Is there any way to bypass this? i only want to connect to one room
Is there a way to change the color for the reply message from hipbot?
Hello,
When using hipbot, the bot seems to disconnect after some period of time.
I can't say when exactly...
Did anyone experience this before ?
Regards.
Hello!
I would like to know how to make every reaction (like a config option) to be case-insensitive?
It could be a feature if not exists :)
You can set custom sender in HipChat API notifications and Hipbot won't react to them as there is no such user in storage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.