Code Monkey home page Code Monkey logo

kogasa-bot's Introduction

kogasa

A comfortable Discord bot for convenience features.

Prefix: ??

Features

Parenthesis are optional, square brackets are required.

  • buffer ("delete" | "edit"): Find deleted or edited messages.
  • love [mentions]: Calculate the love between two or more people. [Disabled]
  • quote: Reply to someone to quote them saying a fire line of text. Includes attachments. Requires canvas-http-api.
  • ytdl [link] [format_id]: Download videos from YouTube. Requires ytdlp-drive.
  • ytdlf: Get the quality and format of your video. Can be used with ytdl with a format_id.
  • google [search_query] and img [search_query]: Gets google searches and images.
  • randomweb: Sends you a random website with gacha elements snuck in.
  • sauce: Reply to an image to find the source of the image relating to anime.
  • help: Finally, a help command!
  • doctor: Check if your servers are working.

Incoming Features

  • dm: A band-aid solution to enable DM-only commands.
  • confess [server_id] [message] [DMS ONLY]: Confess something anonymously to servers.

A basic file structure for easy additions to the bot.

Running

Base Kogasa

  1. Put a config.json on the root of the folder.

The structure of it is like this:

{
	"token": "[token of the bot here]",
	"clientID": "[application id of the bot here]",
	"test_token": "[token of the *test* bot here]",
	"saucenao_token": "[saucenao token here]"
}
  1. Run npm install, npm run build, and npm run prestart in that order.

Fully Featured Kogasa

This assumes you have done Base Kogasa.

  1. Download and extract ytdlp-drive.
  2. Put a config.json with this structure:
{
	"clientID": "clientID of google drive",
	"clientSecret": "clientSecret of google drive",
	"redirectURI": "https://developers.google.com/oauthplayground",
	"token": "token of google drive"
}
  1. Run npm install and ts-node --esm index.ts.
  2. Download and extract canvas.
  3. Run npm install and ts-node --esm index.ts.

Contributing

  1. Make sure to use prettier after you make changes to the code. Run it by calling npm run format.

Misc

Why is there SO MUCH HTTP servers??

  • It seemed cool to implement but it got out of hand quickly.

Incoming

  • Adding unit tests with Chai to make the program a bit safe.

kogasa-bot's People

Contributors

doormatika avatar smallsan 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.