Code Monkey home page Code Monkey logo

hipbot's People

Contributors

fawaf avatar pewniak747 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hipbot's Issues

`<class:Bot>': uninitialized constant Hipbot::Bot::Singleton (NameError)

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:inclass: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

Configuration question

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.

URL handling in messages

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.

Send message at specific time

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?

Robot alias

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.

Message delivery order

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.)

Functionality for adding readable commands

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 ?

Plugin question

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

undefined method `jid' for #<Hash:0x007ff65c602db8>

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!

Plugin support

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

Detecting when someone joins a room?

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'?

Improve logging

  • add logger and log levels
  • log Jabber output at DEBUG level
  • improve logging format:
[timestamp][MESSAGE] message text
[timestamp][REACTION] reaction id
[timestamp][REPLY] reply text
[timestamp][HTTP-REQUEST] request details
[timestamp][HTTP-RESPONSE] response details

Loading of lobby data takes too long

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

Bot disconnects

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.