Code Monkey home page Code Monkey logo

slack-chat's People

Contributors

agarzola avatar arjunmat avatar chetbox avatar ghoshnirmalya avatar ohcibi avatar votlon 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  avatar

slack-chat's Issues

How to customize the chat box?

There are no docs describing it.
In help docs is written:

We support full customization of the chat text, colors, and default responses. Once you add the app to Slack, you'll can edit these settings which take effect immediately

How we can customize it?

Name of automatic created channel (private) has no numbers

As far as I've read the code, the new auto-created channels are supposed to have a random number. But currently, the channels created have no numbers, they only add "name"+"test-user". This makes it very likely for a user to repeat and see someone else's chat.

List of users to invite not optional

When using a private channel, there is a misleading text that says "optional".

In fact, at least one user must be added in the invite list, otherwise the chat won't open. It should say, required.

oauth2 auth tokens exposed

I'm concerned that the demo wants a user api auth token, which it then uses to build the chat. It works, which is really neat btw. I was about to install it on my site when something occured to me: What would stop someone from copying the js containing my auth token and using the auth token to inflict all manor of havoc on my slack?

Nothing?

It's not like the auth token is only good on one site or something. It'd be good anywhere anyone decided to use it. Perhaps the application tokens work differently. I haven't checked that yet.

error: channel_not_found

I've got this integrated as per the downloadable content and your instructions. My app successfully sends messages but every 2 seconds I get told that the channel isn't found, and none of my messages are loading

I deleted the API key for screenshot purposes

screen shot 2016-02-08 at 7 54 04 pm

screen shot 2016-02-08 at 7 54 16 pm

No available commands match View visitor's profile

When trying to implement the Hubot bot, because the slack chat connects without having any particular username or password, Hubot is not able to reply to any of the commands.

Is it possible to login with a specific user to Slack so that bots can also interact with the web visitors?

Create new channel or skip channels

Hi there,
There's a potential that we will have multiple people trying to contact us at the same time, which would mean that them only using the same channel could be an issue.

So it would be an idea to be able to create a unique channel for a new user (e.g. based on the name they put in, and date, e.g. "16032016-john-smith" as a channel name.

Or, if this isn't possible, make it so that you can have 10 (for example) potential slack channels for live chat, and if channel 1 has had an update within the last 10 minutes, then channel 2 will get tried, and if that has been updated in the last 10 minutes, channel 3 tried, until channel 10.

Couple of Questions / Feedback

Hello,

Love this integration, Just spend few hours, but worth it.

I have integrated Private Channel (It took some hours to figure out the php [ ] error and curl error in localhost php 5.3.x). Anyway I've fixed that.

Few Questions :

  1. When using Private channel, any chance to store the random Channel which is generated. So that even the visitor refreshed the page or moved to another page, He can still see the messages?
  2. Any Option to remove the attachment on each messages a visitor sends? it contains visitor name and a link to google.com. I was able to remove the google link but not the attachment.
  3. Any Chance for the user to add their name, so that the channel name is renamed automatically?
  4. How to get Visitor Information as an attachment only for the first time? eg: Country, current page, browser, os, etc..?
  5. How to set an offline message, but still user is able to send a message? That time we will also ask for a email address, so that we can reply when we are back.

Thanks a lot

~Surjith

online indicator not working

I don't get the online indicator to work. It is always orange…
Is there a trick or what do I have to keep in mind if the feature should work? Maybe a permissions thing?
I am using private channels btw. but also if I don't use the private function, it does not work…

Thank you very much!
I think I will do a pull request soon with some minor changes/fixed typo.

Ability to have one slack channel but private messages

As a client user, I would like to have support chats with anyone in the slack channel, but only see relevant messages for me, so that I can keep my personal chat focused and directed to me.

As a slack chat user, I would like to be able to read through all the client slacks and provide "1 on 1" support, so that I can gain the knowledge and allow the client to feel like they are getting personal attention.

Thoughts?

Set it up?

Hi, I was wondering, how to set it up in the correct way.
Im filled out the slack infomation in the slack-chat.js.
And include the slack-chat.js in my page.And call $().slackChat(slackChatOptions);

It doesnt show anything..Do I set up in the wrong way??
Anyone give me some detail for setting it up?

Not displaying messages on WebPage

When a message is submitted from the webpage the message shows up on my slack account, but doesn't display in the message area on the web page.

Isn't working in the demo or in slack-chat integrated into my site.

screen-shot-2016-06-27-at-1 10 03-pm

Here is the code from my site. Demo code is untouched from zip download.

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href="css/slack-chat.css" rel="stylesheet" />

<div class="message-box" data-uk-tooltip="{animation:true,pos:'top-left'}" title="Need help?">
<a href="javascript:void(0);" class="message-box-icon">
<i class="uk-icon-comment uk-icon-large"></i>
<div class="uk-badge uk-badge-danger uk-slack-message-count"></div>
</a>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js"></script>
<script type="text/javascript" src="js/slack-chat.min.js"></script>

<script>
var slackChatOptions = {
apiToken: 'xoxb-54251576438-97qNaEaNVWr8p7FGgJTDdTjM',       //#Slack Auth token. Required. 
channelId: '#helpdesk',      //#Slack channel ID. Required.
user: '<?php echo $loggedInUser->displayname." ".$loggedInUser->lastname; ?>',           //name of the user. Required.
userLink: 'http://localhost:8800/admin_user.php?id=<?php echo $loggedInUser->user_id; ?>',       //link to the user in the application - shown in #Slack
userImg: '',        //image of the user
userId: '<?php echo $loggedInUser->username; ?>',         //id of the user in the application
defaultSysImg: '',         //image to show when the support team replies
defaultSysUser: '',                //Required.   
queryInterval: 3000,
chatBoxHeader: "Need help? Talk to our support team right here",
slackColor: "#36a64f",
messageFetchCount: 100,
botUser: '@support',        //username to post to #Slack. Required.
sendOnEnter: true,
disableIfAway: false,
elementToDisable: null,
heightOffset: 75,
debug: false,
webCache: true,
privateChannel: false,
serverApiGateway: '/server/php/server.php',
useUserDetails: true
}

$('.message-box').slackChat(slackChatOptions);
</script>

unable to invite multiple users to private channel

awesome work! -
right now I am unable to get multiple slack users invited to a private channel.
perhaps I am not forming the user list correctly?
I've tried user names, user IDs, complete user links, everything I could think of. in quotes, comma separated. no luck.

now I am getting the following error in the server.php log:
[26-Sep-2016 16:04:32 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /server/php/server.php on line 69

line 69 calls the array of users to invite them:
foreach($invitedUsers as $user) { $chInvite = curl_init(SLACK_API_INVITE_URL); etc.

I am stuck!

(adding the default token user if no array is specified works great now, but I can't add others)

user ids --> user names

changing user ids to user names or user real names for response messages with an undefined subtype

Private channel messages are duplicated

When selecting a created channel, chat works fine. But, when the private channel option is enabled, the messages are sent twice on the webchat. Slack only shows it once.

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.