maeser.discord_handler package

maeser.discord_handler package#

This is the discord subpackage for the Maeser package.

The run_discord_handler() function provides a handler for interfacing Maeser with the discord API.

In order to use this subpackage, the dependencies in maeser[discord] must be installed (pip install maeser[discord]).

maeser.discord_handler.run_discord_handler(course_id: str = '', bot_token: str = '') None[source]#

Runs the discord handler by setting up a RAG Graph with course_id and connecting it to a discord bot with bot_token.

Parameters:
  • course_id (str, optional) – The course ID the RAG Graph should use for context. Defaults to maeser.config.COURSE_ID.

  • bot_token (str, optional) – _description_. Defaults to maeser.config.DISCORD_BOT_TOKEN.