Code Monkey home page Code Monkey logo

vigneshd332 / proximity Goto Github PK

View Code? Open in Web Editor NEW
43.0 6.0 9.0 1.23 MB

A multipurpose Discord with moderation, Image search, AI Image recognition and a music player. The bot is designed to be hosted locally on a PC or on Heroku. Feel free to contact or ask me anything by opening an issue. AI Image Recognition by IBM Watson through Watson API.

Home Page: https://vigneshd332.github.io/proximity

License: MIT License

JavaScript 99.97% Procfile 0.03%
discord bot music image image-recognition discordbot heroku proximity ibm-cloud musicbot

proximity's Introduction

Proximity

A Discord Bot

A multipurpose Discord with Image search, AI Image recognition and a music player, designed to be hosted on Heroku.

Right now, the bot can:

  • Play Songs
  • Search Images
  • Convert Text to Speech
  • Recognize & Classify Images (requires an IBM Cloud account to use IBM Watson)

Environment variables (Config Vars) to configure in Heroku:

  • prefix = the command prefix for bot (usually it is !) [Example: ! or ~].
  • token = Your unique Discord API Token from the bot's account.
  • watson_key = Your unique IBM API key from IBM Cloud.
  • watson_url = The URL in IBM Cloud with the API Key.
  • giphykey = Your unique Giphy API key.
  • youtubeKey = Your unique YouTube API key.
  • ownerid = Your Discord ID (the one made up entirely of numbers).
  • GENIUS_KEY = Your unique Genius API key.

Heroku Buildpacks

Commands:

  • <prefix>play <song> : Plays song from YouTube
  • <prefix>analyze + image attachment: When added to an image caption, triggers the Image Recognitnion.
  • <prefix>stop : Stops playback.
  • <prefix>skip : Skips to next song in queue.
  • <prefix>image <search term> : Displays images related to the search term.
  • <prefix>bruh : Displays a bruh gif.
  • <prefix>tts <language accent> <text>: Converts text in any script to audio.
  • <prefix>gif <search term> : Displays a gif related to the search term.
  • <prefix>lyrics <search term> : Searches and displays lyrics from Genius.com.
  • <prefix>kick <memeber> : Kicks member.
  • <prefix>ban <member> : Bans member.

** Language accents: en, it, jp, ru, etc.**

To deploy a version of this bot to your Heroku account:

It's better to do it in order.

Stuff to do in Discord:

  • Get a Discord account (Because, Duh!)
  • Create an application and profile for your bot and add it to your server. (Look it up on Youtube if you find it tough)
  • Give these permissions to your bot: Connect, Speak, Send Messages and Manage Messages.
  • Do all the authorization stuff.
  • Keep a copy of your bot's token (privately).

Stuff to do in IBM Cloud:

  • Create an account
  • Create a Visual Recognition resource (the Lite free plan is enough).
  • Find the The Api Key and Url in the resource details and keep a copy of it (again, privately),

Stuff to do in Heroku:

  • Fork this repo and deploy to Heroku.
  • You must see your bot should be building in the application logs or in the overview. If not, then manually deploy it.
  • Start the worker dyno "npm start" in the overview. The "web" dyno switches off randomly so its better to keep it off.

Pro Tips:

  • Keep an eye on the application logs in Heroku to find out any problems.
  • Heroku gives only 450 free hours a month, simply adding credit card details will will give an extra 550 hours.
  • The Visual Recognition feature only works for images uploaded by users in the server, it does not work on links.
  • The IBM Visual Recognition service deletes itself if inactive for a month.

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.