Coder Social home page Coder Social logo

uio-gaming / uiogaming-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 4.0 11.03 MB

Multifunksjonell Discord bot for UiO Gaming

Home Page: https://discord.uiogaming.no

License: GNU General Public License v3.0

Python 99.88% Dockerfile 0.12%
uio discord discord-bot

uiogaming-bot's Introduction

UiO Gaming Discord Bot

UiO Gaming Discord Bot er en chattebot for ulike formål. Hvilke formål det er, er jeg ikke helt sikker på.

Kom i gang

  1. Lag en botbruker / skaff en token. Se her

  2. Lag en kopi av filen config.yaml.example i "config" mappen og fjern .example fra enden av filnavnet til kopien

  3. Fyll inn verdiene i denne konfiguarsjonsfilen

Merk at konfigurasjonsfilen har felt for bl.a. databasekobling. Disse er ikke påkrevd, men du vil derimot miste funksjonalitet om de ikke er fylt inn. Det eneste man fylle inn, som ikke er fylt inn fra før, er token.

Gitt en bruker med tilgang til å skrive og lese fra databasen vil botten lage alle tabeller den trenger for å fungere.

Når token er fylt inn kan du så bevege deg videre til ett av to alternativer.

Valgmulighet 1 - Docker (Anbefalt)

docker-compose up

Valgmulighet 2 - Manuelt

Du bør ha gjort følgende:

  • Installert Python 3.12+
  1. Installer avhengigheter
pip install -r requirements.txt -U
  1. Kjør bot
python src/run.py

Bidra

Se CONTRIBUTING.md

uiogaming-bot's People

Contributors

auxipox avatar centauridesigns avatar lblend avatar potetmos1 avatar rkh00 avatar undependable avatar

Stargazers

 avatar

Watchers

 avatar  avatar

uiogaming-bot's Issues

Make sure streak is kept, even when bot goes offline

At the time of writing this, if the bot goes offline, it will not count streaks. When coming online again it will check if anyone has posted a message within the last 24 hours, however since the bot hasn't counted it will discard the streaks.

Birthday greetings are not working

For some reason the automatic birthday greeting that checks whether or not it's someone birthday every 24 hours does not work properly. It does not throw any errors meaning there might be a problem with the sql query that checks for the current birthdays.

Support multiple owners

Even though the bot account is owned by a team in the Discord developer dashboard, the bot itself does not support multiple owners. Owner-restricted commands can only be executed by me at the moment.

Black precommit action does not autoformat the code for you

The "black formatting" stage of the precommit action only runs black to ensure that the pushed code is the same as how black would format it, not that it satisfies the linter's rules. This means that the precommit does not fix the code for you, and you have to run black locally before commiting to make sure the action tests don't fail. This is really annoying behaviour

Custom help message

The current u!help responds with the default, built-in discord.py help message. This should be replaced with embeds for a cleaner look.

Add most played game & who plays command

Add a command that can check which games are currently being played by people on the server ranked from most played to least played. This will be based on discord presence
Example (bad)

Add a command that can check which people on the server plays a specified game at the time of issuing the command.
Example (bad)

Add option to remove yourself from whitelist

I would've done this already if it weren't for the issue of needing a minecraft username in order to run the /whitelist remove command. This means that one would need to run a reverse search for the minecraft username since we only store the id at the time of writing this

make use of parameter descriptors

By utilizing certain helper functions provided by dpy you can use more human readable command parameter names. There is also a feature that adds descriptions to command parameters

  • Make use of this feature for every command
  • Translate norwegian parameter names to english. I.e translate to norwegian using the describe function while keeping the actual parameter names in code in english

https://discordpy.readthedocs.io/en/latest/interactions/api.html?highlight=describe#discord.app_commands.rename

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.