Skip to content
Scripts for the SinusBot (http://sinusbot.com)
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public/scripts
.gitignore
LICENSE
README.md

README.md

SinusBot Scripts. JavaScript Scripts by Raphael Touet for the SinusBot by flyth (https://frie.se) Copyright (C) 2015 Raphael Touet (@Raphouphe)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

You can find a copy of the GNU General Public Licence in the LICENCE file.

SinusBot Scripts

Scripts for the SinusBot (http://sinusbot.com)


How do I know if I can use these scripts?

If you use a version, in which the script-fetaure is already implemented, you will find a Scripts section in your Settings.

How do I "install" these scripts?

You will need access on the SinusBot files. There is a folder named scripts. You will have to download the script-file and moved it into this directory.
Then you just have to restart your bot, and they will appear in sour Scripts section.

Scripts

Idle Mover 2 (idlemover.js)

Author: Raphraph (raphraph@raphraph.de) & flyth
Description: This script will move all idling clients to a defined channel. Tested with version: SinusBot v0.9.9-98d0cd5

Settings
SettingDescriptionValues
Idle timeTime (in seconds) after which a client is labeled as idling.A valid number bigger than 150
Idle channelThe channel where idling clients are moved to.A valid channel name
Ignored channelsClients which are in some of these channels, will be ignored by the Bot.Each line, one valid channel name or id.
Exempted groupsClients which are in some of these groups, will be ignored by the Bot.Each line, one valid group name or group id.
Send idle messageWhether to send an idling message or not.Just select one of the given options.
Idle messageThe message which is sent to the clients which are idling, if 'Send idle message' is set to 'Send'.A valid message. Supports BBCode. Experimental: should automatically convert links to BBCode.
DebuggingWhether to enable debugging or not.Just select one of the given options.
Checks per minuteHow many times per minute, the bot will check if some clients are idling.A valid number lower or equal to 30.
Speakers not disabledWhether to ignore or not, clients whose speakers aren't disabled.Just select one of the given options.
Log checks into consoleWhether to log each time the script is checking for idling clients or not.Just select one of the given options.

Advertising (advertising.js)

Author: Raphraph (raphraph@raphraph.de) & flyth
Description: This script will announce one of the configured lines every x seconds. Tested with version: SinusBot v0.9.10-e1fdee3

Settings
SettingDescriptionValues
AdsMultiple lines which defines the sent ads. BBCodes are supported!
Normally urls starting with http:// or https:// are automatically converted into a clickable url.
One ad per line
IntervalThe time in SECONDS between each ad is sent.A valid number of seconds
OrderEither the ads should be sent randomly or line by line.
Broadcast-TypeEither the ads should be sent in the server-chat, channel-chat or to each client privatly (not recommended).

Bad Channel Names (badchan.js)

Author: Raphraph (raphraph@raphraph.de) & flyth
Description: This script will remove all channels matching some userdefined names. Tested with version: SinusBot v0.9.9-a4f6453

Settings
SettingDescriptionValues
Forbidden channelsList of forbidden names or regex (one per line).One chnnale-name or regex expression per line
Ignored channelsComma-separated list of ignored channel-ids.Comma-separated list of valid numbers

Bad Usernames (badusername.js)

Author: Raphraph (raphraph@raphraph.de)
Description: This script will remove all channels matching some userdefined names. Tested with version: --

Settings
SettingDescriptionValues
Forbidden names/regexThe names or regular expressions defining which channel isn't allowed.A name or Regular Expression ecach line
Ignored client ids/uuidsThe ids or uuids of the clients which will be ignored by the script.A comma seperated list withc ids and uuids
Warn/Kick/BothWhich action should be performed on the client.Just select one of the given options.
MessagesThe messages sent to the clientFirst line: warn message
Second line: kick message
Check-delayThe delay (in seconds) before the name of the client is checked again, and if it\'s a bad name the client get kicked.A number

Join-Greeting (greetonjoin.js)

Author: Raphraph (raphraph@raphraph.de)
Description: This script will let the bot greet everyone who joins the channel. Tested with version: SinusBot v0.9.9-a4f6453

Settings
SettingDescriptionValues
MessageThe message that should be displayed or sayed. If 'Message-Type' is set to anything except of 'Say', BBCodes are supported.A message
Message-TypeThe way the client should be notified.Just select one of the given options.
Reformat nicknameEnables or disables the reformating feature! DON'T ENABLE IT IF YOU DON'T KNOW HOW TO USE IT!Just select one of the given options.
Reformat nickname - format??? - currently not in use???
Reformat nickname - detailsProvides important details to the script.First line: "split: |" for example. Second line: "pos: 1" for example.

No Recording (norecording.js)


Documentation follows with a new version of this script...

Keyword Message (keywordmessage.js)

Author: Am4n (am4n.ar@gmail.com) & Raphraph (raphraph@raphraph.de)
Description: This script will response to some defined keywords. Tested with version: SinusBot v0.9.9-a4f6453

Settings
SettingDescriptionValues
Keyword/Command/Regex: OutputThe combinations of keyword and output. A valid combination is build like this: key: output. key should be replaced either by a word, by multiple words, by a regular expression (using the slash / as seperator) or by a command (starting with a dot). output should be replaced by a message. BBCodes are supported.One valid combination each line.
Respond on server-chat.If the bot should respond to messages got in the server-chat or not.Just select one of the given options.
Respond on channel-chat.If the bot should respond to messages got in the channel-chat or not.Just select one of the given options.
Respond on private-chat.If the bot should respond to messages got in the private-chat or not.Just select one of the given options.
You can’t perform that action at this time.