Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
/ bentoJS Public archive

Discord bot with server moderation tools and various entertaining commands.

License

Notifications You must be signed in to change notification settings

thebentobot/bentoJS

Repository files navigation

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)

Bento Bot 🍱 (WIP)

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.

List of notable features

  • 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

Setup of the bot

Install the repository

Either by using git clone https://github.com/banner4422/bento.gitor downloading this repository. When opening the project for the first time, remember to npm installfor the node_modules.

Sign up for various API's and other services

  1. Install or sign up for an Atlas account on MongoDB
  2. 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
  3. Get an API key from Tenor, for the GIF functionality.
  4. 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)

Development

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.

Avatar credit

The avatar illustration is done by Freepik.

About

Discord bot with server moderation tools and various entertaining commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published