Git Product home page Git Product logo

sinfbot's Introduction

DiscordSINFBot

How to install ?

Clone the project and install the dependencies by running

npm install

Create the src/.env file, paste in the content of src/.env.example by modifying the variables appropriately. To create a bot and get the token, go to https://discord.com/developers/applications. Do not forget to enable all priviledged intents on the application page.

To run the bot, execute

npm start

The commands will be registered automatically.

Roadmap dev

  • An anonymous confession system. Members send a DM to the bot (/confess <message>), the admin approve it in a private channel (with a react) and the message will be then in the public channel)
  • A bulk clear (/clear <number_message>)
  • A meme contest event creator (/createcontest <channel_id> <emote> <start_date> <end_date>) with the score
  • A pin system for members with the role of pin management. (/pin <message ID to pin>)
  • A welcoming DM to newcomers
  • A poll system
  • Some funny commands (!poop, !méchant, !criminel,...)
  • A dynamic !help listing
  • A hidden rick roll in the project (Holger is in charge)
  • A /version command that return the commit hash o

sinfbot's People

Contributors

obiwac avatar fdardenne avatar emilevillette avatar novati0n avatar rappytv avatar alexandredewilde avatar superlanceur avatar ahzed11 avatar alexisenglebert avatar felixgaudin avatar gwendallaurent avatar hoig3r avatar lunelis avatar megaaa13 avatar

Watchers

 avatar  avatar

sinfbot's Issues

Match ESLint and Prettier rules

At the moment, the two files are completely different and contain rules that are incompatible (i.e. Prettier states that there shouldn't be any semicolon while ESLint states the opposite). We should decide on what code style to follow.

Proposal for bot enhancements: typescript refactor, new button handler, and more

Details

Hello, I have some proposed improvements for the bot (this mainly concerns the code and the maintenance of the project):

  1. Refactor to TypeScript: For improved typing, readability, and maintenance.
  2. Button Handler Implementation: Replace the "collector" method for efficiency.
  3. Global Command Registration: Instead of per-server setup.
  4. Added /help Command: With specific command details.

I am looking to confirm if these changes correspond to future plans for the project, so I will need confirmation before starting to make the adjustments

Thanks!

`/pin` and `/unpin` commands don't find the role `Pineur`

While having the role Pineur should automatically pin the message without doing any vote, that doesn't work. The problem comes from the following line:

interaction.member.roles.cache.some(role => role.name === ROLE_NAME)

which evaluates to false even if the member has the role Pineur. This behavior also occurs in the /unpin command.

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.