Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cornayy/daehria
A Node.js Discord bot just for fun.
https://github.com/cornayy/daehria
discord discord-bot discord-js discord-js-bot javascript
Last synced: 4 months ago
JSON representation
A Node.js Discord bot just for fun.
- Host: GitHub
- URL: https://github.com/cornayy/daehria
- Owner: Cornayy
- License: mit
- Created: 2019-08-06T09:23:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T11:31:45.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T03:20:23.884Z (4 months ago)
- Topics: discord, discord-bot, discord-js, discord-js-bot, javascript
- Language: JavaScript
- Homepage:
- Size: 434 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Daehria
## About
A Discord bot written for fun in Javascript using Discord.js & Node.js.## Usage
* Install the node packages.
* Create a config.json and a .env file in the root of the project.
* Fill it with the following structures.## Config
```json
{
"league": {
"region": "euw1"
},
"prefix": "!",
"github": "https://github.com/Cornayy/Daehria",
"channels": ["bot", "example-channel", "member-log"],
"presence": {
"game": {
"name": "!help for commands",
"type": 1,
"url": "https://www.twitch.tv/cornay"
}
},
"paths": {
"commands": "./src/commands",
"events": "./src/events"
}
}
```
## .env```
BOT_TOKEN=token
LEAGUE_TOKEN=token
```There is a reference to all available "Game Activity Types" at the links section.
**NOTE:** Be careful not to leave your bot token online, so always exclude the .env file from github.
## League of Legends API
To fully support the !getmatch command, add the following emotes to your Discord server:* :challenger:
* :grandmaster:
* :master:
* :diamond:
* :platinum:
* :gold:
* :silver:
* :bronze:
* :iron:
* :unranked:## Links
[Discord.js](https://discord.js.org)
[Activity Types](https://discord.js.org/#/docs/main/stable/typedef/ActivityType)
## TODO
- [x] Set League region (e.g. !setregion EUW1)
- [ ] Create a database and store data, make sure it works on every server.