hex2f / Cask

A unique Discord bot that lets you create your own commands using JavaScript, from the chatbox.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cask Header

What is it?

Cask is a unique Discord bot that lets you create entirely custom commands using JavaScript. It's very simple to use, you just write your code in a code block where you have access to the Discord.JS message object, fetch and the NodeJS crypto api. You can also install cool commands others have published using >cask install or publish your own commands using >cask publish.

How does it work?

Every time a message is sent with the selected prefix in the beginning of the message, > by default, it looks up any stored commands for your server. If it finds any matching commands, it instantiates a new JavaScript virtual machine which has the following variables in its global scope:

Variable Name Description
msg The Discord.JS message object.
fetch An instance of node-fetch, so you can interact with APIs etc.
crypto The NodeJS crypto API.

Commands

Command Description
>cask new Create a new local command.
>cask install Install a command.
>cask remove Remove a command.
>cask list List all installed commands.
>cask vote Show your appreciation for a cask by voting.
>cask search Search for a cask.
>cask top Shows you the top voted casks.
>cask publish Publish one of your local commands.
>cask unpublish Unpublish one of your casks.
>cask permission Manage who can use what.

About

A unique Discord bot that lets you create your own commands using JavaScript, from the chatbox.


Languages

Language:JavaScript 100.0%