Giter Club home page Giter Club logo

slick's People

Contributors

abourget avatar bosgood avatar bpostlethwaite avatar bronsolo avatar errows avatar etpinard avatar jaytaylor avatar kiliankoe avatar mabeauchamp avatar scjody 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

slick's Issues

Redirect slick repository

Hey @abourget,

I had sent you an email about taking over maintainership for Slick. The code currently in this repository is:

  1. Unlicensed
  2. Non-functional

I would like to solve both. I, and several others, have already made changes to get the repository in a working state and to improve code coverage. You can view those here: CapstoneLabs/slick

Even if you don't issue a redirect from this repository I will go on running my fork, that said, you've expressed no license here. Do you have any acceptable licenses in mind?

Slack accounts become unusable

I've been running into a rather strange issue with a bot written in slick. After having an instance running for a while and restarting it (for whatever reason), I can no longer connect to slack. All I see is "Database closed". Resetting any possible changes and deleting all temporary files doesn't seem to have an effect.

Interestingly enough I can connect again when doing so through a new bot account. Simply regenerating the token on the old one does not work. But that's hardly a solution or even a workaround, as this happened again and again for me.

I spent some time with the very helpful Slack support trying to debug this issue, with them going through the server logs but failing to find any problems. I tried my best at debugging the issue, but also couldn't find a cause or something pointing to one.

Should anyone run into a similar issue or have some helpful input on this, I'd love to hear it. For now I had to migrate to using hubot, which does not experience this issue.

Set listeners in a loop

I have a bot that has a few very simple responses. I tried doing the following to register multiple listeners on the bot calling initSimple from within a InitPlugin func and passing it the reference to the bot.

var simpleResponses = map[string]string {
    "listenfor1": "response1",
    "listenfor2": "response2",
}

func initSimple(bot *slick.Bot) {
    for listen, response := range simpleResponses {
        bot.Listen(&slick.Listener{
            Contains:           listen,
            MessageHandlerFunc: func(l *slick.Listener, m *slick.Message) {
                m.Reply(response)
            },
        })
    }
}

The problem is that every "query" into simpleResponses returns the response from the last response, e.g. "response2" in this case. I've also tried generating a listener for every case and handing them to the bot one for one, but that leads to the same result.

Any help on how to achieve this would be much appreciated ๐Ÿ˜Š

slick.sample.conf missing

Hi, I just wanted to highlight that this file is missing :) Also, when I take plotbot.sample.conf , I have:

./example-bot
2018/04/19 14:58:07 LoadConfig(): Error unmarshaling JSON invalid character '"' after object key:value pair
2018/04/19 14:58:07 Error loading Slack config section: invalid character '"' after object key:value pair

reaction.go has some error with go 1.8

go get github.com/abourget/slick
# github.com/abourget/slick
Documents/code/go/src/github.com/abourget/slick/reaction.go:111: cannot use ev.Item.Item.File (type *slack.File) as type string in assignment
Documents/code/go/src/github.com/abourget/slick/reaction.go:112: ev.Item.FileComment undefined (type slack.ReactedItem has no field or method FileComment)
Documents/code/go/src/github.com/abourget/slick/reaction.go:114: cannot use ev.EventTimestamp (type slack.JSONTimeString) as type string in assignment
Documents/code/go/src/github.com/abourget/slick/reaction.go:120: cannot use ev.Item (type slack.ReactedItem) as type struct { Type string "json:\"type\""; Channel string "json:\"channel,omitempty\""; File string "json:\"file,omitempty\""; FileComment string "json:\"file_comment,omitempty\""; Timestamp string "json:\"ts,omitempty\"" } in assignment
Documents/code/go/src/github.com/abourget/slick/reaction.go:123: cannot use ev.Item.Item.File (type *slack.File) as type string in assignment
Documents/code/go/src/github.com/abourget/slick/reaction.go:124: ev.Item.FileComment undefined (type slack.ReactedItem has no field or method FileComment)
Documents/code/go/src/github.com/abourget/slick/reaction.go:126: cannot use ev.EventTimestamp (type slack.JSONTimeString) as type string in assignment

*slack.OutgoingErrorEvent

I often run into Event: *slack.OutgoingErrorEvent when my bot tries to post something to Slack ๐Ÿ˜•

I'm unsure as to why this is happening or what I could do to fix it. The same exact query/bot message works some of the time and results in this error at other times.

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.