1.0.18 • Published 5 years ago

klasa-bot-plugin v1.0.18

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Klasa Bot Plugin

This plugin is meant to serve as a quick plugin to get a bot working with a ton of useful features.

How To Use This Plugin

  1. Open the terminal and type npm i klasa-bot-plugin or yarn add klasa-bot-plugin.
  2. Find the file where you create the Klasa client. Usually an app.js or index.js file.
const { token } = require('./config');
const { Client } = require('klasa');
Client.use(require('klasa-bot-plugin'));

new Client({
    fetchAllMembers: false,
    prefix: ';',
		commandEditing: true,
		commandLogging: true,
    typing: true,
    readyMessage: (client) => `Successfully initialized. Ready to serve ${client.guilds.size} guilds.`
}).login(token);

Before the new Client() add in this line Client.use(require('klasa-bot-plugin')); and the plugin will be automatically activated enabling all the amazing features.

Benefits of using this plugin

  • Using the Klasa Pieces Repository is a bit difficult as you have to monitor when pieces are updated so you can have the latest features. With this plugin all you need do is npm update and it will update all the pieces for you.

  • Many more additional amazing features will be added into this plugin so you can add in all these features easily.

Included Features

  • Custom Commands that servers admins can create, list and remove on their servers.
  • Auto Assign Role to members that join the server.

Arguments

Certain types of arguments are strict on how they require input. For example, to get a member you need to ask for a @member or member id. The arguments that are installed by this plugin will enable you to make your users so much happier.

For example, you can ask for a username and that would be converted automatically. You can ask for a role name, a channel name. These names will then be converted to a proper object.

  • Channel name
  • Member name
  • Role name
  • User name

Commands

These are all the commands that come built in with this plugin.

Admins - Discord Server Administrators

Settings

  • Prefix - Change or reset a servers prefix
  • Autoassignrole - Sets or remove a role to be automatically assigned when a member joins the server.

Fun

  • rps - Play a game of rock, paper, scissors with the bot.
  • 8ball - Magic 8-Ball, does exactly what the toy does.
  • card - Draws some random cards from a deck.
  • catfacts - Let me tell you a misterious cat fact.
  • choice - Makes a decision for you given some choices.
  • chucknorris - Chuck Norris has some good jokes.
  • coinflip - Flips one or more coins
  • compliment - Compliments a user. = x diceroll - Gives you a random dice roll from 1-10.
  • dogfacts - Gives you a random dog fact.
  • horsefacts - Gives you a random horse fact
  • insult -
  • randquote - Returns a random message from someone in the channel.
  • shame - Rings a bell on the server shaming the mentioned person.
  • trumpquote - Returns a random Donald Trump quote.
  • urban -
  • wordcloud -
  • yomomma - Yo momma is so fat, yo.

General

  • info - Provides some information about this bot.
  • invite - Displays the join guild link of the bot.
  • ping - Runs a connection test to Discord.
  • stats - Provides some details about the bot and stats.
  • userconf - Define per-user settings.

Chat Bot Info

  • Help - Display help for a command.

Misc

  • cat - Grabs a random cat image from random.cat.
  • dog - Grabs a random dog image from random.dog.
  • echo - Send a message to a channel through the bot.
  • fml -
  • starboard -
  • hug - Hugs the mentioned user and sends an image in chat.

Moderation

  • ban - Bans a mentioned user. Currently does not require reason (no mod-log).
  • check -
  • kick - Kicks a mentioned user. Currently does not require reason (no mod-log).
  • mute - Mutes a mentioned member.
  • prune - Prunes a certain amount of messages w/o filter.
  • unban - Unbans a user.
  • unmute - Unmutes a mentioned user.
  • lockdown - Locks down the specified channel, stopping people from sending messages in it.

System

  • exec - Execute commands in the terminal, use with EXTREME CAUTION.

Admin

  • eval - Evaluates arbitrary Javascript. Reserved for bot owner.
  • heapsnapshot - Creates a heapdump for finding memory leaks.

Tools

  • followage* -
  • hastebin -
  • movie* -
  • price -
  • randomreddit -
  • remind -
  • roleinfo -
  • server -
  • subreddit -
  • topinvites -
  • tvshow* -
  • twitch* -
  • user -
  • wikipedia -
  • wolfram -

Events

  • Rate Limit

Extendables

Message Extended

  • ask - You can ask the user a question and get a response with message.ask();
  • awaitReply - Await a reply from a user with message.awaitReply();

Text/DM Channels

  • fetchImage - Fetches the last image sent in the last 20 messages with channel.fetchImage();

Finalizers

  • deleteCommand

Inhibitors

  • requiredProviders

Languages

  • German -
  • Spanish -
  • French -
  • Italian -
  • Romanian -
  • Turkish -
  • Requires a little extra setup by you.

Credits

  • Skillz4Killz
  • Klasa Pieces Repository
1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago