The Official repository of Discord development for the Department of Computer Science at Palacký University Olomouc.

Overview

KMI UPOL - Discord development

Student project for enhancing the quality of life on our Department's discord server. We're creating a simple discord bot that helps us manage our server by providing an easy verification of students, assigning roles and integration with the university system.

TODO:

  • Web api
  • Students verification
  • Basic commands
  • Integration with @svickova
  • Event and date reminder

The Official repository of Discord development for the Department of Computer Science at Palacký University Olomouc.

You might also like...

The official bot for Lewis Menelaws (TectTok). The bot is made by using Typescript. Feel free to contribute!

lewis-bot Prerequisites Create an application in Discord's developer portal. You need to add all the Intents and permissions. Then create a link in OA

Aug 11, 2022

⚡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12

⚡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12

Crucian Crucian is my discord bot with simple structure based on discord.js Click Here to invite Crucian to your server Author Crucian © Apoo Authored

Jul 26, 2021

A multipurpose Discord-bot created using discord.js.

Flame A multipurpose Discord-bot with music, economy, utils, and also auto-moderation. Flame is a powerfull, multipurpose and fully modular Discord-bo

Nov 14, 2021

An simple package to create an Activity in Discord Voice Channel using Discord.js

An simple package to create an Activity in Discord Voice Channel using Discord.js

discordjs-activity An simple package to create an Activity in Discord Voice Channel using Discord.js 📂 | Installation npm install discordjs-activity

Nov 15, 2022

best discord selfbot with discord.js-selfbot npm

Discord-Afk-Selfbot best discord selfbot with discord.js-selfbot npm How to start the Bot step by step : Step 1 === Open a CMD the npm init step 2 ==

Aug 18, 2022

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

Dec 3, 2022

OptiBOT - My discord.js V13 discord bot.

OptiBOT Just a discord.js v13 bot for my discord server. if you plan to use this bot for your server, dont. This i made this bot just for learning js

Jan 3, 2022

Discord.JTS - Slash Commands for Discord.JS 13 using Typescript

Installation Requirements and Recommendations: Node.js Git Visual Studo Code An empty test Discord server Step 0: Login into Discord in the Browser Go

Jan 13, 2022

A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment.

hazel A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment. Features Music ― supporting YouTube, Spotify and So

Dec 31, 2022
Comments
  • Custom errors and error throwing, small refactor

    Custom errors and error throwing, small refactor

    Pro zjednodušení tvoření příkazu a lepší přehlednost by bylo vhodné aby každý příkaz vracel generickou návratovou hodnotu typu Result<T>. Typ Result<T> bud obsahuje návratovou hodnotu T nebo Error. Lze se dotázat pomocí metody IsValid zda je stav Success, nebo pomocí metody IsInvalid na stav Faulted. Tedy typ je řízen dvěma stavy.

    Stav Faulted se navrací pomocí funkce Err, která přijímá jeden argument, který má popisovat chybu. https://github.com/Thomasparsley/inf-upol-disc/blob/057b6a2404bb0a9bd0f3d1e00fff07dbcd252397/bot/src/result.ts#L48

    Ukázka použití funkce Err

    /* Before */
    const cmd = commands.get(cmdname);
    if (!cmd) {
        await ReplySilent("Příkaz není k dispozici");
        return;
    }
    
    /* After */
    const cmd = commands.get(cmdname);
    if (!cmd) {
        return Err("Příkaz není k dispozici");
    }
    

    Stav Success se navrací pomocí funkce Ok, která přijímá jeden argument typu T. https://github.com/Thomasparsley/inf-upol-disc/blob/057b6a2404bb0a9bd0f3d1e00fff07dbcd252397/bot/src/result.ts#L47

    Prozatím jsem nevyřešil, co navracent do stavu Success.

    Návrh:

    /* Before */
    await replySilent(`Role ${role} byla **odebrána**.`);
    
    /* After */
    return Ok({type: silent, msg: `Role ${role} byla **odebrána**.`});
    

    Bot by po vykonání funkce onInteractionCreate zpracoval návratovou hodnotu. Pokud by stav návratové hodnoty byl Faulted s popisem chyby by se zavolala funkce ReplySilent. Pokud by stav byl Success podle typu by se provedlo zpracování.

    EDIT: Lepší použití stavu Success

    /* Before */
    await roles.add(StudentID);
    await validation.remove();
    await replySilent("Úspěšně jste se ověřil/a.");
    return;
    
    /* After */
    return Ok([
        roles.add(StudentID),
        validation.remove(),
        replySilent("Úspěšně jste se ověřil/a."),
    ]);
    
    opened by Thomasparsley 3
  • Message reaction

    Message reaction

    Nefunguje mi zapínání eventů.

    private initOnReactionAdd() {
        // sem se dostanu
        this.client.on('messageReactionAdd', (messageReaction, user) => {
            const args: OnReactionAddArgs = {
                client: this.client,
                reaction: messageReaction,
                user: user,
                commands: this.commands,
            };
           
            // sem se nedostanu
        
            this.onReactionAdd(args);
        });
    }
    
    opened by slunimara 1
Owner
Tomáš Petržela
💾 Programming and software development / Computer science at Palacky University.
Tomáš Petržela
[WIP] Meet Koshiro! Our official Discord Bot, Open Source and Community builded. 🛸

Koshiro Meet Koshiro! Our official Discord Bot, Open Source and Community builded. ?? Getting Started Clone the repository git clone https://github.co

WebX DAO 5 Nov 19, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
A Discord bot library to make the development of a bot a little bit easier.

Discord Bot Framework (DBF) A basic Discord bot framework to allow for easier creation of bots. With this library, you can easily parse and handle com

Yoo-Babobo 1 Dec 23, 2021
Official Kudos Bot That I Am Working On!

Kudos-Bot Official Kudos Bot That I Am Working On! Original Bot https://discord.com/oauth2/authorize?client_id=841612776526970922&scope=bot&permission

Kudos 19 Mar 25, 2022
Ramdani Botz V16 adalah bot yang di ciptakan oleh Ramdani Official

Ramdani Botz V16 adalah bot yang di ciptakan oleh Ramdani Official. Jika kamu menemukan semacam bug/error, harap untuk dimaklumi sementara.

Ramdani Official 4 Apr 27, 2022