Giter Club home page Giter Club logo

scriber-bot's Introduction

Scriber Bot

This is a Discord bot project that provides session management and note-taking capabilities. It allows users to start sessions, end sessions, retrieve sessions, and retrieve notes for specific sessions within Discord channels.

Installation

  1. Clone the repository: git clone https://github.com/ufe-pr/scriber-bot.git
  2. Navigate to the project directory: cd scriber-bot
  3. Install dependencies: cargo build
  4. Set up the necessary environment variables:
    • DISCORD_TOKEN: Discord bot token for authentication.
    • SURREAL_DB_URL: URL for the Surreal database.
    • SURREAL_DB_USERNAME: Username for Surreal database authentication (default: "root").
    • SURREAL_DB_PASSWORD: Password for Surreal database authentication (default: "root").
  5. Run the bot: cargo run

Usage

Once the bot is running and connected to the Discord server, you can use the following commands:

  • /start_session <name>: Start a new session with the given name in the current channel.
  • /get_sessions: Retrieve all active sessions in the current channel.
  • /end_session: End the active session in the current channel.
  • /get_note: Retrieve the notes for a specific session through an interaction menu.

Project Structure

The project consists of the following files:

  • main.rs: The main entry point of the application. It sets up the bot, handles events, and initializes the Surreal database.
  • commands.rs: Defines the command functions that can be executed by users.
  • handlers.rs: Contains the event handler function for processing new messages and creating notes.
  • notes.rs: Provides functions for interacting with the notes data.
  • session.rs: Implements session-related functions for managing active sessions.
  • utils.rs: Contains utility functions used throughout the project.

Dependencies

The project relies on the following external dependencies:

  • poise: A framework for creating Discord bot commands.
  • surrealdb: A Rust library for interacting with Surreal databases.
  • serenity: A Discord library for the Rust programming language.
  • tokio: An asynchronous runtime for Rust.

Please refer to the Cargo.toml file for the specific versions of these dependencies used in the project.

Contributing

Contributions to this project are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

  • The poise and serenity crates for their Discord bot framework and library.
  • The surrealdb crate for interacting with Surreal databases.

scriber-bot's People

Contributors

ufe-pr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.