https://github.com/ledouxm/lol-elo-charts
Receive LoL elo notifications on a Discord channel
https://github.com/ledouxm/lol-elo-charts
discord-bot league-of-legends
Last synced: 9 months ago
JSON representation
Receive LoL elo notifications on a Discord channel
- Host: GitHub
- URL: https://github.com/ledouxm/lol-elo-charts
- Owner: ledouxm
- Created: 2023-04-15T23:04:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-01T20:14:39.000Z (12 months ago)
- Last Synced: 2025-07-01T20:35:31.371Z (12 months ago)
- Topics: discord-bot, league-of-legends
- Language: TypeScript
- Homepage:
- Size: 4.8 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
League of Legends LP tracking Discord bot
# Features
## Game and LP logging

## Bet on games

## Daily recaps with chart

## Discord leaderboard

# Available commands
```
/addsummoner NAME
/removesummoner NAME
/listsummoners
/bet POINTS NAME WIN
/listbets
/mybets
/lpleaderboard
/pointsleaderboard
```
# Local development
`pnpm install`
## Bot
- Create an applications on Discord developer portal ([https://discord.com/developers/applications](https://discord.com/developers/applications))
- Copy `.env.dist` to `.env` and fill it with your variables, you can find BOT_TOKEN into the "Bot" section on the previously created Discord app
- `docker compose up -d`
- `pnpm core dev`
## Templates
- Generate styles.css with `pnpm templates panda`
- Run the app that generate the graph with `pnpm templates dev`
### Create a template
Create a new file `packages/templates/YourTemplate.tsx`, it should start with
```tsx
import { setContext, type DefaultProps } from './utils';
export const MatchDetails = (props: DefaultProps) => {
setContext(props);
const { match, participant } = props;
```
Once your template is created, you have to :
- register its dimensions in `packages/core/src/features/details/templates.tsx` in the `dimensions` variable
- register its command name in `packages/core/src/commands/buttons.ts`
- edit the `getComponentsRow` function to add the button to discord messages in `packages/core/src/features/lol/elo.ts`