Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Tskken/CommanD-Bot

Repository files navigation

CommanD-Bot

NOTE!!!!!!

This projected is currently being rewriten under a new name with a new repository. No progress will be made on this repository from hear on out. For all future releases please move to this repository

A sudo command line for full control over your Discord server. This bot is powered by Go, Discordgo, and jbrukh/bayesian library's. Please support them, this bot would not be possible without them.

How to install/run

Note: Current version must be compiled as no exe is given. Install Go and compile to run on your own computer. Later verisons will be easier to run. This code is only currently in a beta state for testing.


Table Of Contents

Introduction

CommanD-Bot was created with a specific goal. Give Discord server moderators the tools they need to make there job easier. Commands to help moderate chat and servers along with a spam and bad word filter to keep the chat civil and salt free.

How to use

All commands require a !. The bot relays on a main command and sub command argument pair. This takes the shape of something like !message -delete. This was to give the ability to have multiple command functions which can differ based on the first command given. The spam filter automatically scans every message sent with in any channel. It deletes messages based on excessive bad words or spam based on a bayesian learning algorithm.

Commands

List of all currently supported primary commands

Command Name Command Function
!help or !h !help will give info on each command. Called on its own it list each primary command. Called with a primary command as an arugment and it will list that primary commands sub-commands. You can also just enter a primary command with out any arguments to get help on that command.
!message or !ms !message is the wrapper command for all messages with in the server.
!player or !pl !player is the wrapper function for all player based commands with in the server.
!channel or !ch !channel gives commands for all channel functions.
!utility or !util !utility commands for extra fun stuff with in a server

Sub commands

Commands that can be called by each primary command.

!message

Command Name Arguments Command Function
-delete or -del "number of messages" "player name" Deleted messages from with in the channel the command is sent. You can pass it any combinations of arguments. No arguments passed with simply delete the last message sent in the channel. Note Only admin users can delete messages created by other people. Non admins can only delete messages that they sent.
-clear or -cl This deletes all messages within a channel that can be deleted. All messages older then two weeks will not be deleted as its is a limitation presented by the Discord API. A work around may be possible but for the time being not planed.

!player

Command Name Arguments Command Function
-kick or -k "username" Kicks a user from the guild.
-ban or -b "username" Bands a user from the guild. Ban time of the user is 30 days by default. This can be changed with other commands.
-bantime or -bt "number of days" Sets the number of days for a user to be band. If this is not called or changed after startup of the bot the default will be 30 days. Note The time currently set to 30 days for every server the bot is in when the bot starts. This will be changed in later versions to save the priset times for each server so that the information does not need to be re-entered every time the bot needs to be restarted.

!channel

Command Name Arguments Command Function
-create or -c "name" "type" Creates a channel with a given name. You can give it a type as text or voice. If no type is given it is default a text channel.
-delete or -del "name" Deletes the given channel.

!utility

Command Name Arguments Command Function
-dice or -d "number greater the zero" Roles a dice between 1 and the entered number.

Whats Planned?

Check out the CommanD-Bot Trello page. It gives a decent look at what is planned with in the bot.

About

Like a command line and more!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages