Code Monkey home page Code Monkey logo

master-bot's Introduction

A discord bot made with JavaScript and the discord.js-commando library

forthebadge

Please drop a โญ if you find this repo/bot useful :)

Installing the dependencies

npm i

Usage

Make a config.json file in the root directory of the project and add:

{
  "prefix": "!",  // You can change the prefix to whatever you want it doesn't have to be - !
  "token": "Your-Bot-Token",
  "tenorAPI": "tenor-API-key",
  "newsAPI": "news-api-key",
  "youtubeAPI": "youtube-api-key",
  "yandexAPI": 'yandex-api-key"
}

I run the bot on a debian 9 environment so it might not work as intended on other operating systems, if you need a guide on how to install node.js on debian 9 or ubuntu I will link one in the resources down below. Moreover, the music command is still under development, so it might break.

Also, no matter what operating system you have, make sure ffmpeg and python 2.7 are installed.

Commands

  • Music commands:

!play - the bot joins your channel and plays music from youtube, either add a url after '!play' or a song name and choose from the provided list

!play Darude - Sandstorm
!play https://www.youtube.com/watch?v=y6120QOlsfU

!pause

!resume

!skip

  • Gif commands:

!gif - query a gif

!gif labrador

!animegif - random anime gif

!gintama - random gintama gif

!jojo - random jojo gif

!cat

  • News command:

!global-news - latest headlines from reuters, you can change the news source to whatever news source you want, just change the source in line 13 in global-news.js or ynet-news.js

  • Translate command:

!translate 'your-text-here' - You can translate any text from any language to English(more languages will be added)

  • Reddit command:

!reddit 'subreddit-name' - Get the 5 top posts of any non-nsfw subreddit or leave blank for r/all

  • Random number command:

!random min max

Resources

Get a Tenor API key here

Get a NewsAPI API key here

How to get a Youtube API key

Get a Yandex API key here

Installing node.js on debian

  • Other commands:

You also have other commands like kick, ban, fortune cookie, etc..

Contributing

Fork it and submit a pull request! Anyone is welcome to suggest new features and improve code quality!

Tasks

  • Improve code quality
  • Write more guild commands
  • Improve music quality

master-bot's People

Contributors

galnir avatar dependabot[bot] avatar

Watchers

James Cloos 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.