Giter VIP home page Giter VIP logo

pineapplbot's Introduction

PineapplBot

This is a productivity/fun Discord bot made for Discord hack week. By Pineappl#5374. Written in JS, supported by Discord.js.

Initialization:

  1. Install the packages:
  • Use npm install
  1. Create a discord client
  1. Get the tokens for
  • Discord client: See Application => Bot => Token
  • YTapi token: link
  • World Trading Data token: link
  • Custom search engine id: link
  • Yandex translate token: link
  1. Create .env file and plug those tokens in like the .env.example

  2. Add the bot to your server:

https://discordapp.com/api/oauth2/authorize?client_id=YOURCLIENTID&scope=bot

With YOURCLENTID replaced by your bot's id

Functions/Commands:

  • =: Evaluates an expression
  • color: Gets a color
  • download: Downloads a song/video from youtube
  • encode: Encode a message to morse
  • help: The help command
  • id: Gets your/someone's id
  • latex: Prints an expression in latex (returns an image)
  • link: Get the invitation link
  • market: Checks status for stocks/indices/foreign exhanges via WorldTradingData
  • random: Random simulations like dice/cards...
  • search: Search for images/videos/others via DuckDuckGo API/Google Custom Search Engine/Youtube Search
  • setprefix: Change the prefix for this bot
  • translate: Translate a message
  • userinfo: Get a user's information

Things to know:

  • The default prefix is p=, you can use p=setprefix [new prefix] to change it
  • To get help for each command use p=help [command]
  • I still have a lot of things I want to add but a week is not a lot of time
  • If you want, I made a bot already which you can use to test the commands. Here is the invitation link:

https://discordapp.com/oauth2/authorize?client_id=592806559135039488&permissions=117760&scope=bot

I hope you all enjoy this bot

pineapplbot's People

Contributors

chees-e 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.