Git Product home page Git Product logo

discord_bot_js's Introduction

discord_bot_js

A discord bot specialised for my server. This bot has the following features

  • Games like minesweeper and rock-scissors-paper
  • Moderation commands: prune
  • Alarm function
  • Play songs as a queue
  • Display and auto update server member count ...

*The details can be viewed when you type the commands.

Installation

Set up the .env file

Please include a .env file in the root folder Example:

// COMPULSORY
BOT_TOKEN = "Your bot token"
CLIENT_ID = "Your application id"
OPENWEATHER_API_KEY = "Your OpenWeather API key"
CONFIRMATION_EMOJI_ID = "โœ…"

// OPTIONAL
GUILD_ID = "Your guild's id"
FFMPEG_PATH = "Your ffmpeg path" // E.g. "D:/ffmpeg/bin"
DP_FORCE_YTDL_MOD = "@distube/ytdl-core"

Set up the config files

You may modify the config/config.json as you wish. However, please do not modify anything in the config/sv_config.json, unless there is a new card pack released or you want to restrict the filter condition.

Download FFMPEG to your machine

Please install FFMPEG to your machine locally, it is NOT recommended to use ffmpeg-static or anything similar, since they are not stable and may possibly cause some unexpected problems.

Use FFMPEG_PATH environment variable to load ffmpeg from custom path if necessary.

Micellanouse

  1. This bot currently does not support sharding, so if this bot is in a total of 2000+ guilds, please add it yourself :)

  2. Playing any Youtube audio actually violates the TOS of Discord API. Although this bot supports playing audios from Youtube, please do not do so to avoid any risk.

  3. This bot may contain numerous bugs, please feel free to fix them.

discord_bot_js's People

Contributors

wtfgn avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.