Skip to content

discord-bot A powerful discord bot with a ton of commands. It can also act as a Music bot & supports Slash Commands

Notifications You must be signed in to change notification settings

deniscerri/discord-bot

Repository files navigation

My first project on discord.

Denis Discord Bot

Denis Discord Bot is a nice useful bot you can use on your discord server. It has alot of commands you can use and have fun with.

Commands:

  • 8ball game
  • show discord avatar and server avatar
  • define words
    • get urban definitions
    • get serious definitions
  • send a random fact
  • search pictures online
  • send random memes from reddit
  • send info about movies & tv shows
    • send what is hot recently if you don't provide a query
  • send roasts
  • send random topics to talk about
  • truth or dare
  • would you rather



Music Commands:

  • play [youtube,soundcloud,spotify] by using queries/song or video links/playlist links
  • pause
  • show lyrics of current playing song or a custom song
  • show what's currently playing
  • play a song then put at the top of the queue
  • play a song then immediately play it without affecting the queue
  • manage song queue by clearing portions or the whole thing
  • clear all songs put by a certain user from the queue
  • clear all songs that are put by users who have left the audio channel
  • move songs around the queue to the top or swap songs positions
  • set song volume
  • loop a song
  • restart a song from the beginning
  • skip a song, even to a index from the queue
  • add multiple songs at the same time in the queue
  • seek to a certain time in the song
  • fast forward by certain seconds
  • rewind by certain seconds
  • shuffle the queue

Screenshots of some commands:

Dev environment:

After cloning the project you have to install the npm libraries. This bot uses the Discord.js v13 package. To run it, you need to have a node version of 16.6 or higher.

Don't forget to provide your own API Keys in your .env file. All API's used in the bot are free and available for everyone to use.

What to write on your .env file

TOKEN=
moviedb=
google_search=
TMDBproxy=
SpotifyClientID=
SpotifyClientSecret=
SpotifyRefreshToken=

TMDB proxy is created in cases if the bot is making too many requests to tmdb. You can create your own by using the code at:
https://tmdb-proxy.deniscerri.repl.co

Apart from the images scraper library, the bot also uses a costum google search api for faster results. You need to create your own at:

https://developers.google.com/custom-search/v1/overview

You can get the Spotify codes by looking through the play-dl documentation.

Generated URL should be like this

https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=277062273344&scope=bot%20applications.commands

Replace CLIENT_ID with your bot. You can find it it Discord's Developer portal, General Information, Application ID

Turn on Message Content Intent in the developer portal. [This intent is used on the playsearch command]. Go to Bot Tab, Message Content Intent

Alot of the bot's commands are powered through REST API calls. I thank every developer that have made the projects this bot depends on. :)

About

discord-bot A powerful discord bot with a ton of commands. It can also act as a Music bot & supports Slash Commands

Topics

Resources

Stars

Watchers

Forks