About

Inspired from IRC Eggdrop bots, this template is a group manager using Corrade that listens for commands in the group chat and carries out the actions.

The template requires the following permissions:

  • group
  • talk
  • database
  • directory
  • notifications
  • inventory
  • system
  • bridge

and the following notifications:

  • login
  • group
  • membership

enabled using the bundled Configurator program for Corrade. Optionally, SIML must be enabled to allow conversing with the bot.

Features

The template includes so far:

  • talking to the bot via its nickname (requires Corrade SIML to be enabled),
  • displaying the current Corrade version,
  • the ability to roll dice in a configured interval,
  • a spanker,
  • displaying random fortune cookies (similar to Unix fortune command),
  • displaying a random joke from a set of notecards in the same primitive (cca. 200 000 one-line jokes from https://github.com/taivop/joke-dataset),
  • the ability to evaluate a mathematical expression,
  • the ability to invite, ban and unban group members,
  • the ability to use the Corrade "softban" / "softunban" feature that keeps the group ban list clean (and extends beyond the 500 entry limit),
  • a fully featured group wiki with namespace / path support that allows you to persistently store and recall group notes.
  • detecting new members and displaying a greeting in group chat when a member joins the group (MOTD).
  • sending group notices from group chat with notice attachments.
  • using Stitch to upgrade or downgrade the Corrade version (requires Stitch to be installed as a service as per the documentation),

Marketplace Item

Setting Up

Rez the marketplace item wherever you want and right-click and edit the box. Go to the "Contents" tab on the pop-up edit pane. Inside you will find a "configuration" notecard. Double-click the notecard and configure the settings to your liking. Note that the options:

  • "corrade"
  • "group"
  • "password"

have to be set in order for the template to work with your Corrade and should correspond with the settings you have made using the Configurator and present in the Corrade.ini file. All the other options should be safe as they are.

Usage

The template performs a Corrade version check and will report on local chat whether your Corrade version is compatible with the template. Once the version check has completed, the modules will pull the configuration and will state that they are listening to group chat.

To get a list of commands, issue in your configured group: @help.

Making the Template Shut Up

Since this is a developer's item, all the debug messages are turned on such that the HUD will be very chatty on local chat. In order to make the template silent, you will have to edit the scripts and remove the debug information. In order to do that, for all scripts, open the script and then find lines similar to the following:

// DEBUG 
llOwnerSay ... etc ...

and comment out the llOwnerSay line for every script.

Configuration Notecard

File: http://svn.grimore.org/corrade-lsl-templates/source/eggdrop/configuration.txt -

########################## START CONFIGURATION ############################
 
# The "corrade", "group" and "password" settings must correspond to your
# Corrade settings otherwise the script will not work at all.
 
# Set this to the UUID of the Corrade bot.
# Ecto Resident
corrade = "ced1d317-a32c-443d-a47f-cab329e77948"
 
# The name of the group - it can also be the UUID of the group.
group = "My Group"
 
# The password for the group.
password = "mypassword"
 
# A short nickname for the bot - something you would call it for short.
nickname = "ecto"
 
# The notification tag - any string you can come up with except the empty string.
notification tag = "119cb10d-3416-4d44-8f42-27c223bba0f3"
 
# The version that this template is compatible with (no need to change).
version = 11.0
 
# The character to use for commands.
command = @
 
# The range for the dice rolling command (inclusive).
roll range = 3,64
 
# The roles that are eligible for administrative group functions such as "eject".
admin roles = Owners,Officers,Moderators
 
# Wiki database table.
wiki table = "corrade-eggdrop-wiki"
 
# The number of records to be retrieved from a namespace.
# This limit works around LSL HTTP limitations not being able to receive more than 2KiB. 
wiki results limit = 15
 
# How many paths in total should be returned when looking up data.
wiki search limit = 5
 
# MOTD database table.
motd table = "corrade-eggdrop-motd"
 
# Database table for jokes.
joke table = "corrade-eggdrop-joke"
 
# Activity database table.
activity table = "corrade-eggdrop-activity"
 
# Reminders table
reminders table = "corrade-eggdrop-reminders"
 
# If the group has a subscription fee, should it be paid back after the new member joined?
pay back = true
 
# The name of the help notecard in this primitive's inventory.
help card = "Help"
 
# The name of the home region.
home region = "Puguet Sound"
 
# This template also processes Discord messages, please see:
# http://grimore.org/secondlife/scripted_agents/corrade/projects/external_services/synchronize_group_chat_and_discord
# on how to set up the Corrade Group to Discord synchronization.
# The following is a list of Discord user IDs that will be allowed to execute administrative commands.
discord admin = "was#5255"
 
## Jenkins CI integration
# Jenkins HTTP user and password
jenkins user = jenkins
jenkins password = mainpassword
jenkins host = jenkins.dev.net
 
 
########################### END CONFIGURATION #############################

Index


secondlife/scripted_agents/corrade/projects/in_world/eggdrop.txt ยท Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.