Skip to content

devtomos/eirlys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eirlys.rs

Anilist Discord Bot, rewritten in Rust. | First written in Python.

Features

[x] SQL Database integration
[x] AniList functions (Search, User, Affinity, Database) - 90% done
[x] Discord Components integration
[ ] Caching (Scores, Animes, Mangas)
[x] Code refactoring
[x] Enhanced logging

# Keys
[x] = Implemented
[ ] = Not Implemented

Installation

  1. Clone the repository:
git clone https://github.com/tmqf/eirlys
cd eirlys-rs
  1. Create a .env file:
touch .env
  1. Open the .env file and add your Discord token and database URL:
TOKEN="your-discord-token"
DB_URL="your-database-url"
  1. Run the bot:
cargo run

Project Structure

  • src/api/: Contains the code for interacting with the AniList API and the database.

    • /anilist_api.rs: Contains all of the anilist backend functions (search_media, user_search, user_scores, relation_names)
    • /anilist_queries.rs: Contains all the queries used for the Anilist API
    • /database_access.rs: Contains all of the database functions to connect, update and insert data.
  • src/commands/: Contains the code for handling Discord commands.

    • /anilist_commands.rs: Contains all of the anilist commands, inwhich users can use.
    • /gen_commands.rs: Contains generic commands, which users may use at time to time. (Banner, Avatar etc.)