GithubHelp home page GithubHelp logo

chrisdenman / id-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 303 KB

A Discord.js bot to that replies to messages that lack suitable image identifiers.

License: The Unlicense

JavaScript 91.30% HTML 0.16% TypeScript 0.54% Java 7.99%

id-bot's Introduction

ID Bot 0.0.6

An stylised image of the project's logo formed of a lower-case i cursively joining a capitalised D

A Discord.js bot to that replies to messages that lack suitable image identifiers.

Use Cases

  • Facilitating inclusivity by promoting descriptions for all message image attachments.
  • Increases the meaningful contextual lifetime of images.

Running Locally

A working version of node is required (Tested on v21.6.2).

Required Environment Variables

  • id_bot_id must be set to the bot's client identifier.
  • id_bot_token must be set to the bot's token.

npm run start - starts the OAuth server and application proper in parallel.

QA

Tests

npm run test

  • Test reports are located here.
  • Coverage reports are located here.

npm run check

  • Runs: linting, auditing, testing.

Linting

npm run lint

Package Auditing

npm run audit

Production Plugins

  • discord.js
  • express
  • discord-api-types

Discord Application Intents Required

  • bot
  • messages.read
  • guilds

Discord Permissions Required

  • Send Messages
  • Send Messages in Threads

Version History

See Version History

Licensing

The Unlicense

Resources Used

id-bot's People

Contributors

chrisdenman avatar

Watchers

 avatar

id-bot's Issues

Terminal message identifiers are not detected.

As discord message content is trimmed of trailing whitespace, when an image identifier terminates a message e.g. ID: will not be detected correctly.

Even if the user terminated a message with ID: e.g., it will still not be detected.

Image identifiers should be detected as such when they either conform to the requisite pattern or, when messages are terminated ID:.

Do we require slash commands?

  • Possible commands:
    • /help to show the requirements for describing image attachments.
    • /historical to apply reminders to historic messages.
    • /pattern to change the identifier verification pattern.
    • /set message - to set the possible reminder message texts.
    • /on & off to enable and disable the bot in a channel.

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.