Giter Club home page Giter Club logo

bakabot's People

Contributors

patai5 avatar vojtak42 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

vojtak42

bakabot's Issues

Upřesnění .env.example

Dobrý den,
mohl byste prosím upřesnit, co přesně zadat do souboru .env.example?
Dostávám error: http.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443 ssl:default [Connect call failed ('162.159.136.232', 443)].
Děkuji

feat: extract dynamic lesson times for lesson reminders

Currently, the lesson times are defined as constants here:

REMIND = [21600, 26100, 29400, 32700, 36600, 39900, 43200, 44400, 47700, 51000, 54000, 57000, 60000]
LESSON_TIMES = [
[25500, 28200],
[28800, 31500],
[32100, 34800],
[36000, 38700],
[39300, 42000],
[42600, 45300],
[43800, 48600],
[47100, 49800],
[50400, 53100],
[53400, 56100],
[56400, 59100],
[59400, 62100],
]
FULL_DAY = 86400

🤮


We should instead extract them directly from the schedule:
image

Since the reminder times are at least for me, set to be ten minutes after the last lesson, we will also need to add some settings for this. The best place for it would probably be in the bot's slash command settings. + the day schedule reminder time (currently 6 AM)

fix: lesson reminder not working

Lesson reminder is not working for whatever reason, doesn't send schedule for the day or the next lessons.
To be investigated.


Most likely caused by this:

Nastavení kanálů

Dobrý den, chtěl bych se zeptat zda bot stále funguje. Snažil jsem se ho zprovoznit vše šlo hladce do spuštění, kdy vyžadoval nastavení kanálů přes příkaz "/channel function:Grades" po spuštění příkazu na Discordu jsem dostal chybovou hlášku "Aplikace neodpovídá", v terminálu:
Ignoring exception in slash command 'channel': Traceback (most recent call last): File "/home/jst/BakaBot/env/lib/python3.12/site-packages/disnake/ext/commands/interaction_bot_base.py", line 1378, in process_application_commands await app_command.invoke(interaction) File "/home/jst/BakaBot/env/lib/python3.12/site-packages/disnake/ext/commands/slash_core.py", line 717, in invoke await self.prepare(inter) File "/home/jst/BakaBot/env/lib/python3.12/site-packages/disnake/ext/commands/base_core.py", line 315, in prepare raise CheckFailure(f"The check functions for command {self.qualified_name!r} failed.") disnake.ext.commands.errors.CheckFailure: The check functions for command 'channel' failed.
Nevíte čím by to mohlo být?

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.