An open API service indexing awesome lists of open source software.

https://github.com/antoinemcx/multi-language-discord-bot

Multi-language Discord Bot (discord.js 14) exemple (fr/en) with command & event handler.
https://github.com/antoinemcx/multi-language-discord-bot

discordbot discordjs-v14 internationalization-example multilanguage translate-discordbot

Last synced: about 1 year ago
JSON representation

Multi-language Discord Bot (discord.js 14) exemple (fr/en) with command & event handler.

Awesome Lists containing this project

README

          

Multi-Language-Discord-Bot



Multi-language Discord Bot (v14) example (fr/en) with command & event handler, by Melio.


If you like the project, feel free to put a ⭐ for better referencing ; If you need help, join the support server.


MIT License

Version discord.js


Stars


Support server



## About
This program is an example of internationalization integration for a Discord Bot.
It's a very simplified example of how to implement several languages in one application.

Again with a focus on simple code, data is stored with SQLite, via the [quick.db](https://www.npmjs.com/package/quick.db) package.
Of course, you're free to implement any other DBMS (database management system).

## Starting the project

### Configuration
The configuration file named **.env** have to be created and replace **exemple.env** and content the token of your discord bot, his prefix and your id or the ids of all other owners.
```
# Bot configuration

PREFIX=BOT_PREFIX
TOKEN=BOT_TOKEN
OWNER=YOUR_DISCORD_ID
```

### Installation
```sh
$ npm install
```

### Start the bot
```sh
$ node index.js
```


## More

For any errors found, please contact me [here](https://discord.com/invite/G6WQsMQShZ) or do a pull request.
This repository is licensed under the MIT License. See the `LICENSE` file ([here](LICENSE)) for more information.

###### This repository was made with ❤️ from my [Structure-Discord-Bot](https://github.com/antoinemcx/Structure-Discord-Bot/tree/master) template repository.