Coder Social home page Coder Social logo

slackapi / template-channel-naming Goto Github PK

View Code? Open in Web Editor NEW
28.0 6.0 15.0 76 KB

Sample Slack app that uses the Events API and interactive message to help enforce channel naming conventions

License: MIT License

JavaScript 100.00%
slack-blueprint slack-workflow-sample

template-channel-naming's Issues

[BUG] app doesn't work in glitch (likely doesn't work anywhere) - README missing additional scope needed

Describe the bug

README missing additional scope needed.

Requirements (place an x in each of the [ ])**

  • [ x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x ] I've read and agree to the Code of Conduct.
  • [x ] I've searched for any related issues and avoided creating a duplicate issue.

To Reproduce

Steps to reproduce the behavior:
Create a channel called - test.
Create a channel called test-001 - nothing
Rename channel to test-002 - nothing
Create channel foo-bar - nothing.
Errors show up in glitch logs as
{ ok: false, error: 'not_in_channel' }

Expected behavior

Interactive item about channels not having templates, being added to templates, changes to the templates.json on disk.

Screenshots

If applicable, add screenshots to help explain your problem.

Reproducible in:

package version:
node version:
OS version(s):

Additional context

[BUG] Bots can not post messages to channels they don't belong to.

Describe the bug

Bots using Granular Scopes as part of the new Slack apps can't message channels they are not members of.

Requirements (place an x in each of the [ ])**

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

To Reproduce

Steps to reproduce the behavior: Simply install the app and create a new channel, the logs will report an error indicating the bot can't post a message to a channel it's not a member of.

Expected behavior

For the app to work as instructed.

Screenshots

If applicable, add screenshots to help explain your problem.

Reproducible in:

Current version, it's not package, node or OS specific.

Additional context

None.

[BUG] Repeating messages/prompts for every event

Describe the bug

Running from Glitch, multiple messages are sent for each event. (The same goes for prompts when a template isn't found, or if a parent channel isn't defined.). I haven't tested locally, and only in Glitch.

Requirements (place an x in each of the [ ])**

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

To Reproduce

Steps to reproduce the behavior:
Do anything involving the sample

Expected behavior

I was only expecting to be prompted/notified once per event

Screenshots

If applicable, add screenshots to help explain your problem.
image
image

Reproducible in:

package version:
node version:
OS version(s):

Additional context

Add any other context about the problem here.

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.