This repo is archived and Bento has moved over to the TypeScript rewrite over here
Link to the Discord Support server
A link to invite the bot to a Discord server will be provided when I feel like it's ready for public use. If you ask nicely you may get a link while it's being developed, by contacting me on Github or Discord (Banner#1017)
A Discord bot with server moderation tools and various entertaining commands.
It is written in JavaScript, utilizing the Discord.js library, with the database being hosted by MongoDB.
A website that lists leaderboards, command guide etc. will be implemented in the near future.
Disclaimer - This Discord bot project was started as a project to learn JavaScript and programming in general, so be wary of questionable code. Refactoring may occur in the future.
- Tiktok & Instagram embedding
- Database that saves server info such as feature settings and welcome message, and user data such as XP/Levels and command info
- Unlimited custom commands (for the server only) that saves name for recall and content
- Horoscope
- Weather and time at a specific city, provided by OpenWeather
- Chat XP/levels and ''praise'' leaderboard
- Custom welcome and goodbye messages, customisable by server
- GIF and Google Image search
- Urban Dictionary search
Either by using git clone https://github.com/banner4422/bento.git
or downloading this repository.
When opening the project for the first time, remember to npm install
for the node_modules.
- Install or sign up for an Atlas account on MongoDB
- Signup on Discord and log into the Discord Developer Portal, where you need to create a bot, to obtain a Discord token, which will be used to communicate with the Discord API
- Get an API key from Tenor, for the GIF functionality.
- Get an API key from OpenWeather, for the weather and time functionality.
Create environment variables in an .env
file using dotenv.
You need to define following environment variables:
TOKEN=(Your Discord API token for your created bot)
PREFIX=(A prefix to call commands, default used by Bento is ?)
COLOR=(A default hex color used for embeds, default used by Bento is #ff8956)
db=(Your MongoDB Atlas link, or localhosted MongoDB. You can use other databases, but it would require a lot of refactoring)
TENORKEY=(Your obtained Tenor API key)
WEATHERKEY=(Your obtained OpenWeather API Key)
IGsessionID=(A SessionID for Instagram, optional but will minimalise the chance of getting blocked by Instagram when webscraping)
The bot is mainly developed by Christian.
Pull requests are very welcome if the features/changes makes sense and are up to par in quality.
The avatar illustration is done by Freepik.