Giter Club home page Giter Club logo

slack-starterbot's Introduction

slack-starterbot

A simple Python-powered starter Slack bot. Read the tutorial for a full overview.

slack-starterbot's People

Contributors

aoberoi avatar mattmakai 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  avatar  avatar  avatar  avatar

slack-starterbot's Issues

App does not work on Windows

I followed all the guidelines and run starterbot.py on windows command prompt. It seems connected as on my Slack channel starter_bot app was online. However the bot does not work, on terminal it did not print the message "Starter Bot connected and running!", which is supposed to be printed if statement "slack_client.rtm_connect(with_team_state=False)" true.
Any suggestions? Thank you

python2 ssl certificate error

Hi guys thanks for this bot code.
I go trough the tutorial on build-first-slack-bot.
I started the code on my Ubuntu 14.04 and run in this error.
I try to install the urllib but the error is still there.

SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information,

slack_client.api_call -> slackclient.api_call

this

    slack_client.api_call("chat.postMessage", channel=channel,
                          text=response, as_user=True)

should be

    slackclient.api_call("chat.postMessage", channel=channel,
                          text=response, as_user=True)

right?

Minor regex issue

The regex for direct mention will fail if another user is mention in the message.
I.e. regex <@([WU].+)>.+ will match "<@uuser1> message <@Uuser2> more message" to the last ">" in the string.
Suggest to change to <@([WU].+?)>.+

Encountered this when I wanted the bot parse commands to interact with other users.

Connection failed.

I've followed the guide and did all the actions but still recieve an error when trying to run a bot:

Traceback (most recent call last):
File "c:\Bot\starterbot\lib\site-packages\slackclient\client.py", line 52, in rtm_connect
self.server.rtm_connect(use_rtm_start=with_team_state, **kwargs)
File "c:\Bot\starterbot\lib\site-packages\slackclient\server.py", line 85, in rtm_connect
raise SlackLoginError(reply=reply)
slackclient.server.SlackLoginError
Connection failed. Exception traceback printed above.

Any idea?

pass variables from Slack in my python code

Hi Matt,

I came upon your python Bot integration to Slack tutorial. I found it very useful and easy to use, however, I have a question regarding the action of passing variables to functions.

I came upon a python-jenkins library that is able do some basic automation steps. Below are some examples. The problem I have is that "empty" is a hard-coded name value.
server.build_job('empty')
server.disable_job('empty')

Are you aware of any way of importing variables from Slack message into my function, e.g. build_job?

Thank you for your time,
Andreea.

Failed RTM connect

I am trying to run the app on a Windows machine and i keep getting the following error.

[Failed RTM connect
Traceback (most recent call last):
  File "C:\Users\saurav\Desktop\Slack Bot\starterbot\lib\site-packages\slackclient\client.py", line 140, in rtm_connect
    self.server.rtm_connect(use_rtm_start=with_team_state, **kwargs)
  File "C:\Users\saurav\Desktop\Slack Bot\starterbot\lib\site-packages\slackclient\server.py", line 168, in rtm_connect
    raise SlackLoginError(reply=reply)
slackclient.server.SlackLoginError
Connection failed. Exception traceback printed above.](url)

logger issue

I am getting this issue when trying to start the bot

No handlers could be found for logger "slackclient.client"
Connection failed. Exception traceback printed above.

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.