0.9.1
Jarvis is an extensible Teamspeak 3 bot written in Javascript, which can be extended by building your own plugins or simply forking and hacking it to your own liking. The bot has been written using standard ES6 Javascript.
This is a thin wrapper around ts3-nodejs-library and slackbots, which handles conencting, closing and dispatching appropriately. Represents a Jarvis Bot Instance
Type: class
(object)
Config object passed from a configuration file
(number)
The Bot's Default Channel passed as a ChannelID number
(object)
: Contains usefull information about the Bot's connection
(boolean)
: If the bot is enabled (not in use currently)
(boolean)
: If Teamspeak-intergration is ready to be used
(boolean)
: If slack-intergration is ready to be used
(number)
: The Bot's Default Channel
(String)
: The Bot's Name
(object)
: Config object
(function)
: Callback function
Disconnects Jarvis from a Teamspeak 3 server
Disconnects Jarvis from slack
Connects Jarvis to a Teamspeak 3 server
Connects Jarvis to a Slack Server
Jarvis external-log utility This function can be used to log an event messsage to a given slack channel TO DO: Return promise possibly for success and fail events for better error handling
(any)
(any)
This is a thin wrapper around slackbots, which extends the functionality with updated Slack API end-points
Extends Bot
(any)
(object)
: Contains config settings for your slack bot API
A collection of utility functions which load all
Plugin used to return a message containing the 'cid' of the channel the invoker is in
!cid
This function is called whenever Jarvis recieves a private message, Returns a message containing the 'cid' of the channel the invoker is in
Plugin used to create a group of channels for a clan and sets the permissions and properties of each channel
!createClan
Plugin configuration settings, please change to match your server
(array)
: The IDs of ServerGroups which can use this plugin
(number)
: The source ServerGroup ID (template group you need to setup in Teamspeak)
(number)
: Value used to calculate the Clan's ServerGroup's 'i_group_sort_id' for alphabetical sorting.
(number)
: Value used for increment of 'i_group_sort_id' E.g. 0-9 = +901s, a = 1000s, b = 1100s, c = 1200, etc
Plugin configuration settings, please change to match your server
(array)
: The IDs of ServerGroups which can use this plugin
Represents a user object which is making channels
Type: object
(object)
The Client which sent a textmessage
(number)
: Keeps track of stage at which user is at in clan channel creation
(object)
: The Client which sent a textmessage
(object)
: Contains all the TeamspeakChannel objects which this user has created
(string)
: Stores the 2-4 character tag for the clan's server group
(number)
: Numeric value corresponding to when the user's session started
This function is called whenever Jarvis recieves a private message Will create a group of channels for a clan and sets the permissions and properties of each channel
Will attempt to create all channels present in the channel array
(Function)
Middleware Function: Provides access to Jarvis functions.
Promise<String>
:
Will attempt to create a clan ServerGroup and add a sortID propery permission
Calculates and returns ServerGroup's 'i_group_sort_id' value for alphabetical sorting. Increments sortid based on clan tag, E.g. 0-9 = +901s, a = 1000s, b = 1100s, c = 1200, etc
(String)
String value containing a clan's tag name, e.g 'EPIC'
number
:
Numerical value used for 'i_group_sort_id' (e.g 'EPIC' => 'E' => 5 * 100 => 901 + 500 => 1401)
Terminates user from currentlyCreating array, ending session and sends a log of the event to slack
Plugin used to return a message containing the 'cid' of the channel the invoker is in
!help
This function is called whenever Jarvis recieves a private message Returns a message containing the all available help commands, given by each plugin
Plugin used to ask a target user if they want to join the invoker user's channel
!joinMe
This function is called whenever Jarvis recieves a private message Will ask target-user(s) if they want to join the invoker user's channel
Gets the teamspeak 3 client objects from their respective client nickname and returns a Promise containing
(array)
Array of target user Teamspeak 3 nicknames
(Function)
Middleware Function: Provides access to Jarvis functions.
(Object)
The Teamspeak Client object which amde the request
Promise<TeamSpeakClient>
:
Plugin used to remove any user in a Server Group which is not also in a Verified Database File
!purgeVerified
Plugin configuration settings, please change to match your server (MOVED TO CONFIG.JS) and populated 'on.message'
This function is called whenever Jarvis recieves a private message Will create a group of channels for a clan and sets the permissions and properties of each channel
This function will attempt to remove any user in a Server Group which is not also in a Verified Database File