Code Monkey home page Code Monkey logo

discordsinfbot's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discordsinfbot's Issues

Roles given according to following courses

The bot would attribute to each member a role, according to the channels they are subscribed to. The roles would be "bac-1", "bac-2", "bac-3", "m-1", "m-2", and would give access to a specific channel (#bac-1 / #bac-2 / #bac-3 / #m-1 / #m-2).

The role should be given following this simple rule:

  • You get the role of the highest year possible
    --> So if you are subscribed to bac-1 and bac-2 channels, you would be given role "bac-2"
    --> If you are only subscribed to bac-1 channels then you simply get role "bac 1"

!create_contest command

We like to do meme contests in the Discord.
During a certain period of time, people post memes in a dedicated channel.
Whoever has acquired the most react at the end of the period has won.

To create an event we need the /contest_create <channel_id> <react> <start_date> <end_date> command.
To see the scoreboard we need the /contest_scoreboard command.

We could extend the functionality with other commands but this will be the subject of a future issue

Write tests

It would be great to have tests, to avoid bugs when merging 😑

Poll: custom reactions

Being able to set custom emojis for reactions could be nice (e.g. is roast garlic or summer sausage better, with 🧄 and 🌭 as reactions users can select between).

A welcoming newcomers DM message

We want to welcome new students in the right way.
The bot should send a welcome message to newcomers.

The message from the old bot is as follows, we can also imagine sending it in English. This is however optional for this issue.

Bienvenue sur le Discord SINF
Ce serveur a pour but de réunir tous les étudiants en informatique en un seul serveur Discord, l'accent est mis sur le partage et l'entraide entre étudiants.
Vous avez ici le droit de discuter, poser vos questions, donner votre avis sur un cours, partager vos tuyaux/synthèses/découvertes, recruter/chercher des personnes pour un projet (non limité aux cours), jouer, ...
Nous organisons également régulièrement des petits événements: le meme contest, distribution de stickers, concours de celui qui a le plus beau chat/setup/...

Pour l'instant, tu as seulement accès aux channels communautaires.

- Envoie la commande .registerChans en DM au @SinfBot.
- Clique sur le lien qui t'est donné.
- Une fois sur le site, coche tous les channels auxquels tu souhaites t'inscrire.
- En pied de page se trouve le bouton "Enregistrer mon choix", mais attention tu ne pourras changer qu'une seule fois toutes les 15 minutes.

Job proposition

Un peu comme un SinfConfession sauf que ça serait pour des offres de taff. On fait sa proposition, ça part chez les admins, ils approuvent (ou pas). Et à l'inverse de la confession on voit l'auteur

(avec images, liens tout ça)

!confess command

An anonymous confession system.
Members send a DM to the bot with /confess
The admin approve it or not in a private channel (with a react) to make the anonymous confession public or not

Double confession message

After commit cd3b339, confessions approved by the admins appears in duplicate in the confession channel.
image

Before this commit, the "approved by" message appeared in the confession_channel and not in the admin confession channel.

Shi Fu Mi Game

A shifumi game between 2 players.

Nothing more, it's just very funny.

I'll do it, this issue is just to reserve it.

Obo facts

Funny commands to have fact about obo

Welcome message crashing

Log output:

TypeError: newMember.send is not a function
    at Object.execute (/DiscordSINFBot/src/events/guildMemberAdd.js:19:22)
    at Client.<anonymous> (/DiscordSINFBot/src/bot.js:64:44)
    at Client.emit (node:events:513:28)
    at module.exports [as GUILD_MEMBER_ADD] (/DiscordSINFBot/node_modules/discord.js/src/client/websocket/handlers/GUILD_MEMBER_ADD.js:16:14)
    at WebSocketManager.handlePacket (/DiscordSINFBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
    at WebSocketShard.onPacket (/DiscordSINFBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:482:22)
    at WebSocketShard.onMessage (/DiscordSINFBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10)
    at WebSocket.onMessage (/DiscordSINFBot/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/DiscordSINFBot/node_modules/ws/lib/websocket.js:1178:20)

What was the intent of the welcome message functionality again?

Embed messages

The /thanks, /version, /elo, /ping commands and the welcome DM currently only have a simple message without embeds.

It would be nice to have some for each command, an example can be taken from the /poll command.

Not everything has to be done at once, PR that solves part of this issue will be accepted.

!pin command

In Discord, the pin feature is reserved for roles that have permission to manage messages (i.e. delete and pin).

We want a !pin command in response to a message to pin it.
Several cases are possible:

  • If the person has a specific role, then the message is automatically pinned
  • If the person has the permission to manage messages, then the message is automatically pinned
  • Otherwise the bot submits the pin to a vote. If the vote is successful, the message is pinned

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.