Giter Site home page Giter Site logo

pinbot's People

Contributors

dependabot[bot] avatar elliotwms avatar

Watchers

 avatar  avatar  avatar

Forkers

revelynn

pinbot's Issues

Update pin messages

Add a mechanism to update pin messages, so that if the format of the pin message changes then previously created pins can be updated for consistency.

Listen for regular pins

Pinning a message the old-fashioned way will emit a CHANNEL_PINS_UPDATE event. At this point, trigger a reimport of the pinned messages for that channel

Track channel renames

When a channel with a pin-specific channel is renamed, users must remember to also rename the pin channel

Pinbot should track channel renames, and if an associated pin channel is present, attempt to rename that automatically

Add integration tests

Investigate the possibility of running a full suite of integration tests against the actual Discord API.

  • Create a temporary guild for the test run with channels configured correctly
  • Run tests for common scenarios
  • Delete guild on teardown

Add tests to CI pipeline

Following on from #3, tests should be run in Github pipelines on branches and on merge to master.

Outstanding questions:

  • Which bot should be running these tests?
  • Which guild should the tests be run in?
  • Should the test bot create a guild per test?

Add Dockerfile

  • Add Dockerfile
  • Build Docker image in CI
  • Publish to Docker Hub as part of CI pipeline

Add permissions

Some guilds might not necessarily want every user to be able to pin messages. Add a way for guilds to specify if a user can pin messages.

For example, Pinbot could detect the presence of a pinbot-user role in the guild. If this role is present then when receiving the pin request Pinbot should verify that the user pinning the message has the role.

Copy embeds

When a message is pinned it should copy the contents of the embeds, such as links, tweets or YouTube videos

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.