Skip to content

AndyLocks/LegoTehSet

Repository files navigation

Lego Teh Set

gpl discord JDA rebrickable

invite

A bot that will help you find lego sets directly in discord chat

Description

This bot automates the search and speeds it up. Using one command, you can request several Lego sets at once directly in the discord chat.

Commands

  • search - show all found sets by request

    search_command

    There are arrows for scrolling:

    buttons

    The page button helps you enter the desired page:

    page_button

    There is also a sorting option:

    sorting_option

  • random - get random set

    random

    It is possible to choose the theme of the set:

    themes

  • favourites - show my favourite sets

    favourites

    Same control buttons as in the search command.

  • add_favourite - mark a set as a favourite

    add_favourite

Lego API

Rebrickable

Rebrickable provides a number of API/Web Services to assist developers build their own websites or apps which use the Rebrickable database.

Invite the bot

Authorization

Build

How to run a bot locally on your computer

Clone this repository

git clone https://github.com/AndyLocks/LegoTehSet

Configuration

  1. Rename .env.example to .env

  2. Write a discord bot token in the TOKEN column

    Example: TOKEN=asSkDSfjwDebt.AbobAkdkjdOnbwdslkfjwelkhfgnkoAJSsdDasdWdHKPjsdkfhn.LKDSJlksdflkjDFlksdjf

  3. Write a Rebrickable api token in the REBRICKABLE_API_KEY column

Install docker and docker compose

Here you can read how to install Docker compose.

Here you can read how to install Docker engine.

Run project

docker compose up --build

Architecture

Architecture

LTS

The basic microservice. Manages the bot logic, located in the . folder.

Profile hub

Profile microservice. Saves users' favorite sets and adds new ones. Located in the profile_hub folder.

About

This discord bot makes it easy to find information about Lego sets right in the discord chat.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors