This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Can someone explain this to me please

General support and discussion of Eggdrop bots.
Post Reply
K
KiNgThRaNdUiL
Voice
Posts: 19
Joined: Mon Mar 16, 2015 7:31 pm
Location: swansea

Can someone explain this to me please

Post by KiNgThRaNdUiL »

Eggdrop v1.6.21 (C) 1997 Robey Pointer (C) 2011 Eggheads
[20:26:29] --- Loading eggdrop v1.6.21 (Sat Mar 21 2015)
[20:26:29] Listening at telnet port 5555 (all).
[20:26:29] * Please make sure you edit your config file completely.
ircd@irc:~/eggdrop$
My host said it looks fine to him :(

Code: Select all

#! /path/to/executable/eggdrop
# ^- This should contain a fully qualified path to your Eggdrop executable.
#
# $Id: eggdrop.conf,v 1.69 2011/09/23 20:31:32 thommey Exp $
#
# This is a sample Eggdrop configuration file which includes all possible
# settings that can be used to configure your bot.
#
# The pound signs (#) that you see at the beginning of some lines mean that
# the remainder of that line is a comment, or just for your information. By
# adding or deleting pound signs, you can comment or uncomment a setting,
# respectively.
#
# Arguments for a command or setting may be inclosed in <>'s or []'s in the
# example/description. Arguments in <>'s are required, while [] means optional.
#
# More detailed descriptions of all these settings can be found in
# doc/settings/.



##### BASIC SETTINGS #####

# This setting defines the username the bot uses on IRC. This setting has
# no effect if an ident daemon is running on your bot's machine.
set username "Trivbot"

# This setting defines which contact person should be shown in .status,
# /msg help, and other places. You really should include this information.
set admin " KiNgThRaNdUiL <email: lamer@lamest.lame.org>"

# This setting is used only for info to share with others on your botnet.
# Set this to the IRC network your bot is connected to.
set network "irc.gbchatterbox.co.uk"

# This setting defines which timezone is your bot in. It's used for internal
# routines as well as for logfile timestamping and scripting purposes.
# The timezone string specifies the name of the timezone and must be three
# or more alphabetic characters. For example, Central European Time(UTC+1)
# should be "CET".
set timezone "EST"

# The offset setting specifies the time value to be added to the local
# time to get Coordinated Universal Time (UTC aka GMT). The offset is
# positive if the local timezone is west of the Prime Meridian and
# negative if it is east. The value (in hours) must be between -23 and
# 23. For example, if the timezone is UTC+1, the offset is -1.
set offset "5"

# If you don't want to use the timezone setting for scripting purposes only,
# but instead everywhere possible, un-comment the following line.
#set env(TZ) "$timezone$offset"

# If you're using virtual hosting (your machine has more than 1 IP), you
# may want to specify the particular IP to bind to. You can specify either
# by hostname or by IP. You may also want to set the hostname here if
# Eggdrop has trouble detecting it when it starts up.
#set my-hostname "virtual.host.com"
set my-ip "217.147.92.14"

# If you want to have your Eggdrop messages displayed in a language other
# than English, change this setting to match your preference. An alternative
# would be to set the environment variable EGG_LANG to that value.
#
# Languages included with Eggdrop: Danish, English, French, Finnish, German.
#addlang "english"


##### LOG FILES #####

# Eggdrop is capable of logging various things, from channel chatter to
# commands people use on the bot and file transfers. Logfiles are normally
# kept for 24 hours. Afterwards, they will be renamed to "(logfile).yesterday".
# After 48 hours, they will be overwritten by the logfile of the next day.
#
# Events are logged by certain categories. This way, you can specify
# exactly what kind of events you want sent to various logfiles.
#
# Logfile flags:
#   b - information about bot linking and userfile sharing
#   c - commands
#   d - misc debug information
#   h - raw share traffic
#   j - joins, parts, quits, and netsplits on the channel
#   k - kicks, bans, and mode changes on the channel
#   m - private msgs, notices and ctcps to the bot
#   o - misc info, errors, etc (IMPORTANT STUFF)
#   p - public text on the channel
#   r - raw incoming server traffic
#   s - server connects, disconnects, and notices
#   t - raw botnet traffic
#   v - raw outgoing server traffic
#   w - wallops (make sure the bot sets +w in init-server)
#   x - file transfers and file-area commands
#
# Note that modes d, h, r, t, and v can fill disk quotas quickly. There are
# also eight user-defined levels (1-8) which can be used by Tcl scripts.
#
# Each logfile belongs to a certain channel. Events of type 'k', 'j', and 'p'
# are logged to whatever channel they happened on. Most other events are
# currently logged to every channel. You can make a logfile belong to all
# channels by assigning it to channel "*".

# This is the maximum number of logfiles allowed. This setting can be
# increased; however, don't decrease it.
set max-logs 5

# This is the maximum size of your logfiles. Set it to 0 to disable.
# This value is in kilobytes, so '550' would mean cycle logs when it
# reaches the size of 550 kilobytes. Note that this only works if you
# have keep-all-logs 0 (OFF).
set max-logsize 0

# This could be good if you have had problem with the logfile filling
# your quota/hard disk or if you log +p and publish it to the web and
# need more up-to-date info. Note that this setting might increase the
# CPU usage of your bot (on the other hand it will decrease your mem usage).
set quick-logs 0

# This setting allows you the logging of raw incoming server traffic via
# console/log flag 'r', raw outgoing server traffic via console/log mode 'v',
# raw botnet traffic via console/log mode 't', and raw share traffic via
# console/log mode 'h'. These flags can create a large security hole,
# allowing people to see user passwords. This is now restricted to +n users
# only. Please choose your owners with care.
set raw-log 0

# This creates a logfile named eggdrop.log containing private msgs/ctcps,
# commands, errors, and misc. info from any channel.
logfile mco * "logs/eggdrop.log"

# This creates a logfile named lamest.log containing joins, parts,
# netsplits, kicks, bans, mode changes, and public chat on the
# channel #Trivia.
logfile jpk #Trivbot "logs/Trivbot.log"

# Use this feature to timestamp entries in the log file.
set log-time 1

# Set the following to the timestamp for the logfile entries. Popular times
# might be "[%H:%M]" (hour, min), or "[%H:%M:%S]" (hour, min, sec).
# Read `man strftime' for more formatting options.  Keep it below 32 chars.
set timestamp-format {[%H:%M:%S]}

# If you want to keep your logfiles forever, turn this setting on. All
# logfiles will get suffix ".[day, 2 digits][month, 3 letters][year, 4 digits]".
# Note that your quota/hard-disk might be filled by this, so check your
# logfiles often and download them.
set keep-all-logs 0

# If keep-all-logs is 1, this setting will define the suffix of the logfiles.
# The default will result in a suffix like "04May2000". "%Y%m%d" will produce
# the often used yyyymmdd format. Read the strftime manpages for more options.
# NOTE: On systems which don't support strftime, the default format will
# be used _always_.
set logfile-suffix ".%d%b%Y"

# You can specify when Eggdrop should switch logfiles and start fresh. You
# must use military time for this setting. 300 is the default, and describes
# 03:00 (AM).
set switch-logfiles-at 300

# "Writing user file..." and "Writing channel file..." messages won't be logged
# anymore if this option is enabled. If you set it to 2, the "Backing up user
# file..." and "Backing up channel file..." messages will also not be logged.
# In addition to this, you can disable the "Switching logfiles..." and the new
# date message at midnight, by setting this to 3.
set quiet-save 0


##### CONSOLE #####

# This is the default console mode. It uses the same event flags as the log
# files do. The console channel is automatically set to your "primary" channel,
# which is set in the modules section of the config file. Masters can change
# their console channel and modes with the '.console' command.

set console "mkcobxs"


##### FILES AND DIRECTORIES #####

# Specify here the filename your userfile should be saved as.
set userfile "Trivbot.user"

# Specify here the filename Eggdrop will save its pid to. If no pidfile is
# specified, pid.(botnet-nick) will be used.
set pidfile "pid.TrivBot"

# If you want your userfile to be sorted upon saving, enable this setting.
# This causes the bot to use a bit more CPU when saving the userfile.
set sort-users 0

# Specify here where Eggdrop should look for help files. Don't modify this
# setting unless you know what you're doing!
set help-path "help/"

# Specify here where Eggdrop should look for text files. This is used for
# certain Tcl and DCC commands.
set text-path "text/"

# Set here a place to store temporary files.
set temp-path "/tmp"

# The MOTD (Message Of The day) is displayed when people dcc chat or telnet
# to the bot. Look at doc/TEXT-SUBSTITUTIONS for options.
set motd "text/motd"

# This banner will be displayed on telnet connections. Look at
# doc/TEXT-SUBSTITUTIONS for options.
set telnet-banner "text/banner"

# This specifies what permissions the user, channel, and notes files should
# be set to. The octal values are the same as for the chmod system command.
#
# To remind you:
#
#          u  g  o           u  g  o           u  g  o
#    0600  rw-------   0400  r--------   0200  -w-------    u - user
#    0660  rw-rw----   0440  r--r-----   0220  -w--w----    g - group
#    0666  rw-rw-rw-   0444  r--r--r--   0222  -w--w--w-    o - others
#
# Note that the default 0600 is the most secure one and should only be changed
# if you need your files for shell scripting or other external applications.
set userfile-perm 0600


##### BOTNET/DCC/TELNET #####

# Settings in this section should be unimportant for you until you deal
# with botnets (multiple Eggdrops connected together to maximize efficiency).
# You should read doc/BOTNET before modifying these settings.

# If you want to use a different nickname on the botnet than you use on
# IRC (i.e. if you're on an un-trusted botnet), un-comment the next line
# and set it to the nick you would like to use.
set botnet-nick "TrivBot"

# This opens a telnet port by which you and other bots can interact with the
# Eggdrop by telneting in.
#
# There are more options for the listen command in doc/tcl-commands.doc. Note
# that if you are running more than one bot on the same machine, you will want
# to space the telnet ports at LEAST 5 apart, although 10 is even better.
#
# Valid ports are typically anything between 1025 and 65535 assuming the
# port is not already in use.
#
# If you would like the bot to listen for users and bots in separate ports,
# use the following format:
#
#   listen 3333 bots
#   listen 4444 users
#
# If you wish to use only one port, use this format:
#
#   listen 3333 all
#
# You need to un-comment this line and change the port number in order to open
# the listen port. You should not keep this set to 3333.
listen 5555 all

# This setting defines whether or not people can boot users on the Eggdrop
# from other bots in your botnet. Valid settings are:
#   0 - allow *no* outside boots
#   1 - allow boots from sharebots
#   2 - allow any boots
set remote-boots 2

# This setting prohibits remote bots from telling your Eggdrop to unlink from
# share bots.
set share-unlinks 1

# This setting will drop telnet connections not matching a known host.
set protect-telnet 0

# This setting will make the bot ignore DCC chat requests which appear to
# have bogus information on the grounds that the user may have been trying
# to make the bot connect to somewhere that will get it into trouble, or
# that the user has a broken client, in which case the connect wouldn't work
# anyway.
set dcc-sanitycheck 0

# This settings defines a time in seconds that the bot should wait before
# a dcc chat, telnet, or relay connection times out.
set ident-timeout 5

# Define here whether or not a +o user still needs the +p flag to dcc the bot.
set require-p 1

# If you want people allow to telnet in and type 'NEW' to become a new user,
# set this to 1. This is similar to the 'hello' msg command. The protect-telnet
# setting must be set to 0 to use this.
set open-telnets 0

# If you don't want Eggdrop to identify itself as an eggdrop on a telnet
# connection, set this setting to 1. Eggdrop will display 'Nickname' instead.
set stealth-telnets 0

# If you want Eggdrop to display a banner when telneting in, set this setting
# to 1. The telnet banner is set by 'set telnet-banner'.
set use-telnet-banner 0

# This settings defines a time in seconds that the bot should wait before
# a dcc chat, telnet, or relay connection times out.
set connect-timeout 15

# Specify here the number of lines to accept from a user on the partyline
# within 1 second before they are considered to be flooding and therefore
# get booted.
set dcc-flood-thr 3

# Define here how many telnet connection attempts in how many seconds from
# the same host constitute a flood. The correct format is Attempts:Seconds.
set telnet-flood 5:60

# If you want telnet-flood to apply even to +f users, set this setting to 1.
set paranoid-telnet-flood 1

# Set here the amount of seconds before giving up on hostname/address
# lookup (you might want to increase this if you are on a slow network).
set resolve-timeout 7


##### MORE ADVANCED SETTINGS #####

# Set this to your socks host if your Eggdrop sits behind a firewall. If
# you use a Sun "telnet passthru" firewall, prefix the host with a '!'.
#set firewall "!sun-barr.ebay:3666"

# If you have a NAT firewall (you box has an IP in one of the following
# ranges: 192.168.0.0-192.168.255.255, 172.16.0.0-172.31.255.255,
# 10.0.0.0-10.255.255.255 and your firewall transparently changes your
# address to a unique address for your box) or you have IP masquerading
# between you and the rest of the world, and /dcc chat, /ctcp chat or
# userfile sharing aren't working, enter your outside IP here. This IP
# is used for transfers only, and has nothing to do with the my-ip or
# my-hostname settings. You may still need to set my-ip and/or my-hostname.
#set nat-ip "127.0.0.1"

# If you want all dcc file transfers to use a particular portrange either
# because you're behind a firewall, or for other security reasons, set it
# here.
#set reserved-portrange 2010:2020

# Set the time in minutes that temporary ignores should last.
set ignore-time 15

# Define here what Eggdrop considers 'hourly'. All calls to it, including such
# things as note notifying or userfile saving, are affected by this.
# For example:
#
#   set hourly-updates 15
#
# The bot will save its userfile 15 minutes past every hour.
set hourly-updates 00

# Un-comment the next line and set the list of owners of the bot.
# You NEED to change this setting.
set owner "KiNgThRaNdUiL"

# Who should a note be sent to when new users are learned?
set notify-newusers "$owner"

# Enter the flags that all new users should get by default. See '.help whois'
# on the partyline for a list of flags and their descriptions.
set default-flags "hp"

# Enter all user-defined fields that should be displayed in a '.whois'.
# This will only be shown if the user has one of these extra fields.
# You might prefer to comment this out and use the userinfo1.0.tcl script
# which provides commands for changing all of these.
set whois-fields "url birthday"

# Enable this setting if you want your Eggdrop to die upon receiving a SIGHUP
# kill signal. Otherwise, the Eggdrop will just save its userfile and rehash.
set die-on-sighup 0

# Enable this setting if you want your Eggdrop to die upon receiving a SIGTERM
# kill signal. Otherwise, the Eggdrop will just save its userfile and rehash.
set die-on-sigterm 1

# Uncomment these two lines if you wish to disable the .tcl and .set commands.
# If you select your owners wisely, you should be okay enabling these.
#unbind dcc n tcl *dcc:tcl
#unbind dcc n set *dcc:set

# If you enable this setting, only permanent owners (owner setting) will be
# able to use .tcl and .set. Moreover, if you want only let permanent owners
# use .dump, then set this to 2.
# WARNING: setting this to 0 is a security risk, don't do it unless you trust
# your owners enough to give them shell access to the account the bot is
# running on. 
set must-be-owner 1

# Comment out this line to add the 'simul' partyline command (owners can
# manipulate other people on the party line). Please select owners wisely
# and use this command ethically!
unbind dcc n simul *dcc:simul

# Set here the maximum number of socket connections you will allow. You can
# increase this later, but never decrease it below current usage.
# If you're using Tcl threads, this is a per-thread maximum.
set max-socks 100

# Enable this setting if you want +d & +k users to use commands bound as -|-.
set allow-dk-cmds 1

# If your Eggdrop rejects bots that actually have already disconnected from
# another hub, but the disconnect information has not yet spread over the
# botnet due to lag, use this setting. The bot will wait dupwait-timeout
# seconds before it checks again and then finally reject the bot.
set dupwait-timeout 5

# Set this to 0 if you want the bot to strip '~+-^=' characters from user@hosts
# before matching them.
# This setting is currently kept for compatibility, but will be removed from
# the next release. Please leave it set to 1 to avoid problems with your user
# files in the future.
set strict-host 1

# Enable cidr support for b/e/I modes. This means the bot will understand
# and match modes in cidr notation, and will be able to put and enforce such
# bans or unban itself, if banned with a cidr mask.
# Do NOT set this, if your network/server does not support cidr!
set cidr-support 0

# You MUST remove this line for your bot to start. This has been added to
# prevent you from starting up a bot that is not fully configured. Bots
# that have not been fully configured may join the wrong IRC network, the
# wrong channels, or generally do things that you do not want. Please make
# sure that you have double-checked every setting. There's also a similar line
# lower down, just to make sure you're reading :)
die "Please make sure you edit your config file completely."


##### MODULES #####

# Below are various settings for the modules included with Eggdrop.
# PLEASE READ AND EDIT THEM CAREFULLY, even if you're an old hand at
# Eggdrop, things change.

# This path specifies the path were Eggdrop should look for its modules.
# If you run the bot from the compilation directory, you will want to set
# this to "". If you use 'make install' (like all good kiddies do ;), this
# is a fine default. Otherwise, use your head :)
set mod-path "modules/"


#### BLOWFISH MODULE ####

# IF YOU DON'T READ THIS YOU MAY RENDER YOUR USERFILE USELESS LATER
# Eggdrop encrypts its userfile, so users can have secure passwords.
# Please note that when you change your encryption method later (i.e.
# using other modules like a md5 module), you can't use your current
# userfile anymore. Eggdrop will not start without an encryption module.
loadmodule blowfish


#### DNS MODULE ####

# This module provides asynchronous dns support. This will avoid long
# periods where the bot just hangs there, waiting for a hostname to
# resolve, which will often let it timeout on all other connections.
loadmodule dns

# In case your bot has trouble finding dns servers or you want to use
# specific ones, you can set them here. The value is a list of dns servers.
# The order doesn't matter. You can also specify a non-standard port.
# The default is to use the system specified dns servers. You don't need to
# modify this setting normally.
#set dns-servers "8.8.8.8 8.8.4.4"

# Specify how long should the DNS module cache replies at maximum. The value
# must be in seconds.
# Note that it will respect the TTL of the reply and this is just an upper
# boundary.
set dns-cache 86400

# Specify how long should the DNS module cache negative replies (NXDOMAIN,
# DNS Lookup failed). The value must be in seconds.
set dns-negcache 600

# How many times should the DNS module resend the query for a given domain
# if it receives no reply?
set dns-maxsends 4

# Specify how long should the DNS module wait for a reply before resending the
# query. The value must be in seconds.
set dns-retrydelay 3

#### CHANNELS MODULE ####

# This module provides channel related support for the bot. Without it,
# you won't be able to make the bot join a channel or save channel
# specific userfile information.
loadmodule channels

# Enter here the filename where dynamic channel settings are stored.
set chanfile "Trivbot.chan"

# Set this setting to 1 if you want your bot to expire bans/exempts/invites set
# by other opped bots on the channel.
set force-expire 0

# Set this setting to 1 if you want your bot to share user greets with other
# bots on the channel if sharing user data.
set share-greet 0

# Set this setting to 1 if you want to allow users to store an info line.
set use-info 1

# Set this setting to 1 if you want to allow both +p and +s channel modes
# to be enforced at the same time by the chanmode channel setting.
# Make sure your server supports +ps mixing or you may get endless mode
# floods.
set allow-ps 0

# The following settings are used as default values when you .+chan #chan or .tcl
# channel add #chan. Look below for explanation of every option.

set global-flood-chan 15:60
set global-flood-deop 3:10
set global-flood-kick 3:10
set global-flood-join 5:60
set global-flood-ctcp 3:60
set global-flood-nick 5:60
set global-aop-delay 5:30
set global-idle-kick 0
set global-chanmode "nt"
set global-stopnethack-mode 0
set global-revenge-mode 0
set global-ban-type 3
set global-ban-time 120
set global-exempt-time 60
set global-invite-time 60

set global-chanset {
        -autoop         -autovoice
        -bitch          +cycle
        +dontkickops    +dynamicbans
        +dynamicexempts +dynamicinvites
        -enforcebans    +greet
        -inactive       -nodesynch
        -protectfriends +protectops
        -revenge        -revengebot
        -secret         -seen
        +shared         -statuslog
        +userbans       +userexempts
        +userinvites    -protecthalfops
        -autohalfop     -static
}

# chanmode +/-<modes>
#    This setting makes the bot enforce channel modes. It will always add
#    the +<modes> and remove the -<modes> modes.
#
# idle-kick 0
#    This setting will make the bot check every minute for idle
#    users. Set this to 0 to disable idle check.
#
# stopnethack-mode 0
#    This setting will make the bot de-op anyone who enters the channel
#    with serverops. There are seven different modes for this settings:
#      0 turn off
#      1 isoptest (allow serverop if registered op)
#      2 wasoptest (allow serverop if op before split)
#      3 allow serverop if isop or wasop
#      4 allow serverop if isop and wasop.
#      5 If the channel is -bitch, see stopnethack-mode 3
#        If the channel is +bitch, see stopnethack-mode 1
#      6 If the channel is -bitch, see stopnethack-mode 2
#        If the channel is +bitch, see stopnethack-mode 4
#
# revenge-mode 0
#   This settings defines how the bot should punish bad users when
#   revenging. There are four possible settings:
#     0 Deop the user.
#     1 Deop the user and give them the +d flag for the channel.
#     2 Deop the user, give them the +d flag for the channel, and kick them.
#     3 Deop the user, give them the +d flag for the channel, kick, and ban them.
#
# ban-type 3
#   This setting defines what type of bans should eggdrop place for +k users or
#   when revenge-mode is 3.
#   Available types are:
#     0 *!user@host
#     1 *!*user@host
#     2 *!*@host
#     3 *!*user@*.host
#     4 *!*@*.host
#     5 nick!user@host
#     6 nick!*user@host
#     7 nick!*@host
#     8 nick!*user@*.host
#     9 nick!*@*.host
#   You can also specify types from 10 to 19 which correspond to types
#   0 to 9, but instead of using a * wildcard to replace portions of the
#   host, only numbers in hostnames are replaced with the '?' wildcard.
#   Same is valid for types 20-29, but instead of '?', the '*' wildcard
#   will be used.
#
# ban-time 120
#   Set here how long temporary bans will last (in minutes). If you
#   set this setting to 0, the bot will never remove them.
#
# exempt-time 60
#   Set here how long temporary exempts will last (in minutes). If you
#   set this setting to 0, the bot will never remove them. The bot will
#   check the exempts every X minutes, but will not remove the exempt if
#   a ban is set on the channel that matches that exempt. Once the ban is
#   removed, then the exempt will be removed the next time the bot checks.
#   Please note that this is an IRCnet feature.
#
# invite-time 60
#   Set here how long temporary invites will last (in minutes). If you
#   set this setting to 0, the bot will never remove them. The bot will
#   check the invites every X minutes, but will not remove the invite if
#   a channel is set to +i. Once the channel is -i then the invite will be
#   removed the next time the bot checks. Please note that this is an IRCnet
#   feature.
#
# aop-delay (minimum:maximum)
# This is used for autoop, autohalfop, autovoice. If an op or voice joins a
# channel while another op or voice is pending, the bot will attempt to put
# both modes on one line.
#   aop-delay 0   No delay is used.
#   aop-delay X   An X second delay is used.
#   aop-delay X:Y A random delay between X and Y is used.
#
# need-op { putserv "PRIVMSG #lamest :op me cos i'm lame!" }
#    This setting will make the bot run the script enclosed in brackets
#    if it does not have ops. This must be shorter than 120 characters.
#    If you use scripts like getops.tcl or botnetop.tcl, you don't need
#    to set this setting.
#
# need-invite { putserv "PRIVMSG #lamest :let me in!" }
#    This setting will make the bot run the script enclosed in brackets
#    if it needs an invite to the channel. This must be shorter than 120
#    characters. If you use scripts like getops.tcl or botnetop.tcl, you
#    don't need to set this setting.
#
# need-key { putserv "PRIVMSG #lamest :let me in!" }
#    This setting will make the bot run the script enclosed in brackets
#    if it needs the key to the channel. This must be shorter than 120
#    characters. If you use scripts like getops.tcl or botnetop.tcl, you
#    don't need to set this setting
#
# need-unban { putserv "PRIVMSG #lamest :let me in!" }
#    This setting will make the bot run the script enclosed in brackets
#    if it needs to be unbanned on the channel. This must be shorter than
#    120 characters. If you use scripts like getops.tcl or botnetop.tcl,
#    you don't need to set this setting
#
# need-limit { putserv "PRIVMSG #lamest :let me in!" }
#    This setting will make the bot run the script enclosed in brackets
#    if it needs the limit to be raised on the channel. This must be
#    shorter than 120 characters. If you use scripts like getops.tcl or
#    botnetop.tcl, you don't need to set this setting
#
# flood-chan 15:60
#    Set here how many channel messages in how many seconds from one
#    host constitutes a flood. Setting this to 0 or 0:0 disables
#    flood protection for the channel.
#
# flood-deop 3:10
#    Set here how many deops in how many seconds from one host constitutes
#    a flood. Setting this to 0 or 0:0 disables deop flood protection for
#    the channel.
#
# flood-kick 3:10
#    Set here how many kicks in how many seconds from one host constitutes
#    a flood. Setting this to 0 or 0:0 disables kick flood protection for
#    the channel.
#
# flood-join 5:60
#    Set here how many joins in how many seconds from one host constitutes
#    a flood. Setting this to 0 or 0:0 disables join flood protection for
#    the channel.
#
# flood-ctcp 3:60
#    Set here how many channel ctcps in how many seconds from one host
#    constitutes a flood. Setting this to 0 or 0:0 disables ctcp flood
#    protection for the channel.
#
# flood-nick 5:60
#    Set here how many nick changes in how many seconds from one host
#    constitutes a flood. Setting this to 0 or 0:0 disables nick flood
#    protection for the channel.
#
# A complete list of all available channel settings:
#
# enforcebans
#    When a ban is set, kick people who are on the channel and match
#    the ban?
#
# dynamicbans
#    Only activate bans on the channel when necessary? This keeps
#    the channel's ban list from getting excessively long. The bot
#    still remembers every ban, but it only activates a ban on the
#    channel when it sees someone join who matches that ban.
#
# userbans
#    Allow bans to be made by users directly? If turned off, the bot
#    will require all bans to be made through the bot's console.
#
# dynamicexempts
#    Only activate exempts on the channel when necessary? This keeps
#    the channel's exempt list from getting excessively long. The bot
#    still remembers every exempt, but it only activates a exempt on
#    the channel when it sees a ban set that matches the exempt. The
#    exempt remains active on the channel for as long as the ban is
#    still active.
#
# userexempts
#    Allow exempts to be made by users directly? If turned off, the
#    bot will require all exempts to be made through the bot's console.
#
# dynamicinvites
#    Only activate invites on the channel when necessary? This keeps
#    the channel's invite list from getting excessively long. The bot
#    still remembers every invite, but the invites are only activated
#    when the channel is set to invite only and a user joins after
#    requesting an invite. Once set, the invite remains until the
#    channel goes to -i.
#
# userinvites
#    Allow invites to be made by users directly? If turned off, the
#    bot will require all invites to be made through the bot's console.
#
# autoop
#    Op users with the +o flag as soon as they join the channel?
#    This is insecure and not recommended.
#
# autohalfop
#    Halfop users with the +l flag as soon as they join the channel?
#    This is insecure and not recommended.
#
# bitch
#    Only let users with +o) flag be opped on the channel?
#
# greet
#    Say a user's info line when they join the channel?
#
# protectops
#    Re-op a user with the +o flag if they get deopped?
#
# protecthalfops
#    Re-halfop a user with the +l flag if they get dehalfopped?
#
# protectfriends
#    Re-op a user with the +f flag if they get deopped?
#
# statuslog
#    Log the channel status line every 5 minutes? This shows the bot's
#    status on the channel (op, voice, etc.), the channel's modes, and
#    the total number of members, ops, voices, regular users, and +b,
#    +e, and +I modes on the channel. A sample status line follows:
#
#      [01:40] @#lamest (+istn) : [m/1 o/1 v/4 n/7 b/1 e/5 I/7]
#
# revenge
#    Remember people who deop/kick/ban the bot, valid ops, or friends
#    and punish them? Users with the +f flag are exempt from revenge.
#
# revengebot
#    This is similar to to the 'revenge' option, but it only triggers
#    if a bot gets deopped, kicked or banned.
#
# autovoice
#    Voice users with the +v flag when they join the channel?
#
# secret
#    Prevent this channel from being listed on the botnet?
#
# shared
#    Share channel-related user info for this channel?
#
# cycle
#    Cycle the channel when it has no ops?
#
# dontkickops
#    Do you want the bot not to be able to kick users who have the +o
#    flag, letting them kick-flood for instance to protect the channel
#    against clone attacks.
#
# inactive
#    This prevents the bot from joining the channel (or makes it leave
#    the channel if it is already there). It can be useful to make the
#    bot leave a channel without losing its settings, channel-specific
#    user flags, channel bans, and without affecting sharing.
#
# seen
#    Respond to seen requests in the channel?  The seen module must be
#    loaded for this to work.
#
# nodesynch
#    Allow non-ops to perform channel modes? This can stop the bot from
#    fighting with services such as ChanServ, or from kicking IRCops when
#    setting channel modes without having ops.
#
# static
#    Allow only permanent owners to remove the channel?

# To add a channel to eggdrop, please enter the bot's partyline and type
# .+chan #channel. Check also .help chanset and .help chaninfo.
# You can still add a channel here and it will be saved if you have a
# chanfile. We recommend you to use the partyline though.
# 
channel add #Trivia


#### SERVER MODULE ####

# This module provides the core server support. You have to load this
# if you want your bot to come on IRC. Not loading this is equivalent
# to the old NO_IRC define.
loadmodule server

# What is your network?
#   0 = EFnet
#   1 = IRCnet
#   2 = Undernet
#   3 = DALnet
#   4 = +e/+I/max-modes 20 Hybrid
#   5 = Others
set net-type 0

# Set the nick the bot uses on IRC, and on the botnet unless you specify a
# separate botnet-nick, here.
set nick "TrivBot"

# Set the alternative nick which the bot uses on IRC if the nick specified
# by 'set nick' is unavailable. All '?' characters will be replaced by random
# numbers.
set altnick "TrivieBot"

# Set what should be displayed in the real-name field for the bot on IRC.
# This can not be blank, it has to contain something.
set realname "/msg Trivbot hello"

# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}

# Set the default port which should be used if none is specified with
# '.jump' or in 'set servers'.
set default-port 6667

# This is the bot's server list. The bot will start at the first server listed,
# and cycle through them whenever it gets disconnected. You need to change these
# servers to YOUR network's servers.
#
# The format is:
#   server[:port[:password]]
#
# Both the port and password fields are optional; however, if you want to set a
# password you must also set a port. If a port isn't specified it will default to
# your default-port setting.
set servers {
  irc.gbchatterbox.co.uk:6667
}

# Number of seconds to wait between transmitting queued lines to the server.
# Lower this value at your own risk.  ircd is known to start flood control
# at 512 bytes/2 seconds.
set msg-rate 2

# This setting makes the bot try to get his original nickname back if its
# primary nickname is already in use.
set keep-nick 1


# This setting makes the bot squelch the error message when rejecting a DCC
# CHAT, SEND or message command. Normally, Eggdrop notifies the user that the
# command has been rejected because they don't have access. Note that sometimes
# IRC server operators detect bots that way.
set quiet-reject 1

# If you want your bot to answer lower case ctcp requests (non rfc-
# compliant), set this setting to 1. mIRC will do this, most other
# clients will not.
set lowercase-ctcp 0

# Set how many ctcps should be answered at once.
set answer-ctcp 3

# Set here how many msgs in how many seconds from one host constitutes
# a flood. If you set this to 0:0, msg flood protection will be disabled.
set flood-msg 5:60

# Set here how many ctcps in how many seconds from one host constitutes
# a flood. If you set this to 0:0, ctcp flood protection will be disabled.
set flood-ctcp 3:60

# This settings makes the bot cycle forever through the server list until
# it successfully connects to one.
set never-give-up 1

# This setting defines how long Eggdrop should wait before moving from one
# server to another on disconnect. If you set 0 here, Eggdrop will not wait
# at all and will connect instantly. Setting this too low could result in
# your bot being K:Lined.
set server-cycle-wait 60

# Set here how long Eggdrop should wait for a response when connecting to a
# server before giving up and moving on to next server.
set server-timeout 60

# If the number of servers on the net gets below this number, the bot
# will jump to a new server (it will assume it's on the losing end of
# a netsplit). Set this to 0 to turn off. If your bot is running on
# any major IRC network, this should probably be turned off.
set servlimit 0

# Set this to 1 if Eggdrop should check for stoned servers? (where the
# server connection has died, but Eggdrop hasn't been notified yet).
set check-stoned 1

# If you want your bot to exit the server if it receives an ERROR message,
# set this to 1.
set serverror-quit 1

# Set here the maximum number of lines to queue to the server. If you're
# going to dump large chunks of text to people over IRC, you will probably
# want to raise this. 300 is fine for most people though.
set max-queue-msg 300

# If you want Eggdrop to trigger binds for ignored users, set this to 1.
set trigger-on-ignore 0

# This setting configures PUBM and MSGM binds to be exclusive of PUB and MSG
# binds. This means if a MSGM bind with the mask "*help*" exists and is
# triggered, any MSG bindings with "help" in their mask will not be
# triggered. Don't enable this unless you know what you are doing!
set exclusive-binds 0

# Allow identical messages in the mode queue?
set double-mode 1

# Allow identical messages in the server queue?
set double-server 1

# Allow identical messages in the help queue?
set double-help 1

# This optimizes the kick queue. It also traces nick changes and parts in
# the channel and changes the kick queue accordingly. There are three
# different options for this setting:
#   0 = Turn it off.
#   1 = Optimize the kick queue by summarizing kicks.
#   2 = Trace nick changes and parts on the channel and change the queue
#       accordingly. For example, bot will not try to kick users who have
#       already parted the channel.
# ATTENTION: Setting 2 is very CPU intensive.
set optimize-kicks 1

# If your network supports more recipients per command then 1, you can
# change this behavior here. Set this to the number of recipients per
# command, or set this to 0 for unlimited.
set stack-limit 4

### SERVER MODULE - OTHER NETWORKS (net-type 5) ###

# This settings defines how umode +r is understood by Eggdrop. Some networks
# use +r to indicate a restricted connection. If this is your case, and you
# want your bot to leave restricted servers and jump to the next server on its
# list, then set it to 1.
#set check-mode-r 1

# This setting allows you to specify the maximum nick-length supported by your
# network. The default setting is 9. The maximum supported length by Eggdrop
# is 32.
#set nick-len 9

#### CTCP MODULE ####

# This module provides the normal ctcp replies that you'd expect.
# Without it loaded, CTCP CHAT will not work. The server module
# is required for this module to function.
loadmodule ctcp

# Set here how the ctcp module should answer ctcps. There are 3 possible
# operating modes:
#   0: Normal behavior is used.
#   1: The bot ignores all ctcps, except for CHAT and PING requests
#      by users with the +o flag.
#   2: Normal behavior is used, however the bot will not answer more
#      than X ctcps in Y seconds (defined by 'set flood-ctcp').
set ctcp-mode 0

# There are also several variables to help make your bot less noticeable.
# They are: ctcp-version, ctcp-finger, and ctcp-userinfo. You can use set to set
# them to values you'd like.


#### IRC MODULE ####

# This module provides basic IRC support for your bot. You have to
# load this if you want your bot to come on IRC. The server and channels
# modules must be loaded for this module to function.
loadmodule irc

# Set this to 1 if you want to bounce all server bans.
set bounce-bans 0

# Set this to 1 if you want to bounce all server exemptions (+e modes).
# This is disabled if use-exempts is disabled.
set bounce-exempts 0

# Set this to 1 if you want to bounce all server invitations (+I modes).
# This is disabled if use-invites is disabled.
set bounce-invites 0

# Set this to 1 if you want to bounce all server modes.
set bounce-modes 0

# Set here the maximum number of bans you want the bot to set on a channel.
# Eggdrop will not place any more bans if this limit is reached. Undernet
# currently allows 45 bans, IRCnet allows 30, EFnet allows 100, and DALnet
# allows 100.
set max-bans 30

# Set here the maximum number of exempts you want Eggdrop to set on a channel.
# Eggdrop will not place any more exempts if this limit is reached.
set max-exempts 20

# Set here the maximum number of invites you want Eggdrop to set on a channel.
# Eggdrop will not place any more invites if this limit is reached.
set max-invites 20

# There is a global limit for +b/+e/+I modes. This limit should be set to
# the same value as max-bans for networks that do not support +e/+I.
set max-modes 30

# The following settings should be left commented unless the default values
# are being overridden. By default, exempts and invites are on for EFnet and
# IRCnet, but off for all other large networks. This behavior can be modified
# with the following 2 flags. If your network doesn't support +e/+I modes then
# you will be unable to use these features.
#
# Do you want to enable exempts (+e modes)?
#set use-exempts 0

# Do you want to enable invites (+I modes)?
#set use-invites 0

# Set this to 1 if you want the bot to kick for control character/ctcp
# avalanches to a channel. Remember that if it does, it won't ban them.
# This can start kick floods.
set kick-fun 0

# Set this to 1 if you want the bot to ban for control character/ctcp
# avalanches to a channel. This can prevent kick floods, but it also can
# fill the banlist.
set ban-fun 0

# If you want people to be able to add themselves to the bot's userlist
# with the default userflags (defined above in the config file) via the
# 'hello' msg command, set this to 1.
set learn-users 0

# Set here the time (in seconds) to wait for someone to return from a netsplit
# (i.e. wasop will expire afterwards). Set this to 1500 on IRCnet since its
# nick delay stops after 30 minutes.
set wait-split 600

# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
set wait-info 180

# Set this to the maximum number of bytes to send in the arguments
# of modes sent to the server. Most servers default this to 200.
set mode-buf-length 200

# Many IRCops find bots by seeing if they reply to 'hello' in a msg.
# You can change this to another word by un-commenting the following
# two lines and changing "myword" to the word wish to use instead of
# 'hello'. It must be a single word.
unbind msg - hello *msg:hello
bind msg - myword *msg:hello

# Many takeover attempts occur due to lame users blindly /msg ident'ing to
# the bot and attempting to guess passwords. We now unbind this command by
# default to discourage them. You can enable these commands by commenting the
# following two lines.
unbind msg - ident *msg:ident
unbind msg - addhost *msg:addhost

# Some IRC servers are using some non-standard op-like channel prefixes/modes.
# Define them here so the bot can recognize them. Just "@" should be fine for
# most networks. Un-comment the second line for some UnrealIRCds.

#set opchars "@"
#set opchars "@&~"

# If you are so lame you want the bot to display peoples info lines, even
# when you are too lazy to add their chanrecs to a channel, set this to 1.
# *NOTE* This means *every* user with an info line will have their info
# line displayed on EVERY channel they join (provided they have been gone
# longer than wait-info).
set no-chanrec-info 0

### IRC MODULE - IRCnet SPECIFIC FEATURES (net-type 1) ###

# Attention: Use these settings *only* if you set 'net-type' to 1!

# At the moment, the current IRCnet IRCd version (2.10) doesn't support the
# mixing of b, o and v modes with e and I modes. This might be changed in the
# future, so use 1 at the moment for this setting.
set prevent-mixing 1

### IRC MODULE - OTHER NETWORKS (net-type 5) ###

# Attention: Use these settings *only* if you set 'net-type' to 5!

# If your network supports more users per kick command then 1, you can
# change this behavior here. Set this to the number of users to kick at
# once, or set this to 0 for all at once.
#set kick-method 1

# Some networks allow you to stack lots of channel modes into one line.
# They're all guaranteed to support at least 3, so that's the default.
# If you know your network supports more, you may want to adjust this.
# This setting is limited to 6, although if you want to use a higher value,
# you can modify this by changing the value of MODES_PER_LINE_MAX in
# src/chan.h and recompiling the bot.
#set modes-per-line 3

# Some networks don't include the +l limit and +k or -k key modes
# in the modes-per-line (see above) limitation. Set include-lk to 0 for
# these networks.
#set include-lk 1

# Set this to 1 if your network uses IRCu2.10.01 specific /who requests.
# Eggdrop can, therefore, ask only for exactly what's needed.
#set use-354 0

# If your network doesn't use rfc 1459 compliant string matching routines,
# set this to 0.
#set rfc-compliant 1


#### TRANSFER MODULE ####

# The transfer module provides DCC SEND/GET support and userfile transfer
# support for userfile sharing. Un-comment the next line to load it if you
# need this functionality.
#loadmodule transfer

# Set here the maximum number of simultaneous downloads to allow for
# each user.
set max-dloads 3

# Set here the block size for dcc transfers. ircII uses 512 bytes,
# but admits that it may be too small. 1024 is standard these days.
# 0 is turbo-dcc (recommended).
set dcc-block 0

# Enable this setting if you want to copy files into the /tmp directory
# before sending them. This is useful on most systems for file stability,
# but if your directories are NFS mounted, it's a pain, and you'll want
# to set this to 0. If you are low on disk space, you may also want to
# set this to 0.
set copy-to-tmp 1

# Set here the time (in seconds) to wait before an inactive transfer times out.
set xfer-timeout 30


#### SHARE MODULE ####

# This module provides userfile sharing support between two directly
# linked bots. The transfer and channels modules are required for this
# module to correctly function. Un-comment the following line to load
# the share module.
#loadmodule share

# Settings in this section must be un-commented before setting.

# When two bots get disconnected, this setting allows them to create a
# resync buffer which saves all changes done to the userfile during
# the disconnect. When they reconnect, they will not have to transfer
# the complete user file, but, instead, just send the resync buffer.
#
# NOTE: This has been known to cause loss of channel flags and other
# problems. Using this setting is not recommended.
#set allow-resync 0

# This setting specifies how long to hold another bots resync data
# before flushing it.
#set resync-time 900

# When sharing user lists, DON'T ACCEPT global flag changes from other bots?
# NOTE: The bot will still send changes made on the bot, it just won't accept
# any global flag changes from other bots. This overrides the private-globals
# setting (below).
#set private-global 0

# When sharing user lists, if private-global isn't set, which global flag
# changes from other bots should be ignored?
#set private-globals "mnot"

# When sharing user lists, don't accept ANY userfile changes from other
# bots? Paranoid people should use this feature on their hub bot. This
# will force all userlist changes to be made via the hub.
#set private-user 0

# This setting makes the bot discard its own bot records in favor of
# the ones sent by the hub.
# NOTE: No passwords or botflags are shared, only ports and
# address are added to sharing procedure. This only works with hubs that
# are v1.5.1 or higher.
#set override-bots 0


#### COMPRESS MODULE ####

# This module provides provides support for file compression. This allows the
# bot to transfer compressed user files and therefore save a significant amount
# of bandwidth. The share module must be loaded to load this module. Un-comment
# the following line to the compress module.
#loadmodule compress

# Allow compressed sending of user files? The user files are compressed with
# the compression level defined in `compress-level'.
set share-compressed 1

# This is the default compression level used. These levels are the same as
# those used by GNU gzip.
#set compress-level 9


#### FILESYSTEM MODULE ####

# This module provides an area within the bot where users can store and
# manage files. With this module, the bot is usable as a file server. The
# transfer module is required for this module to function. Un-comment
# the following line to load the filesys module.
#loadmodule filesys

# Set here the 'root' directory for the file system.
set files-path "/home/mydir/filesys"

# If you want to allow uploads, set this to the directory uploads
# should be put into. Set this to "" if you don't want people to
# upload files to your bot.
set incoming-path "/home/mydir/filesys/incoming"

# If you don't want to have a central incoming directory, but instead
# want uploads to go to the current directory that a user is in, set
# this setting to 1.
set upload-to-pwd 0

# Eggdrop creates a '.filedb' file in each subdirectory of your file area
# to keep track of its own file system information. If you can't do that (for
# example, if the dcc path isn't owned by you, or you just don't want it to do
# that) specify a path here where you'd like all of the database files to be
# stored instead.
set filedb-path ""

# Set here the maximum number of people that can be in the file area at once.
# Setting this to 0 makes it effectively infinite.
set max-file-users 20

# Set here the maximum allowable file size that will be received (in KB).
# Setting this to 0 makes it effectively infinite.
set max-filesize 1024


#### NOTES MODULE ####

# This module provides support for storing of notes for users from each other.
# Note sending between currently online users is supported in the core, this is
# only for storing the notes for later retrieval.
loadmodule notes

# Set here the filename where private notes between users are stored.
set notefile "TrivBot.notes"

# Set here the maximum number of notes to allow to be stored for each user
# (to prevent flooding).
set max-notes 50

# Set here how long (in days) to store notes before expiring them.
set note-life 60

# Set this to 1 if you want to allow users to specify a forwarding address
# for forwarding notes to another account on another bot.
set allow-fwd 0

# Set this to 1 if you want the bot to let people know hourly if they have
# any notes.
set notify-users 0

# Set this to 1 if you want the bot to let people know on join if they have
# any notes.
set notify-onjoin 1

# Comment out this next line. Otherwise, your bot won't start.
#die "You didn't edit your config file completely like you were told, did you?"


#### CONSOLE MODULE ####

# This module provides storage of console settings when you exit the
# bot or type .store on the partyline.
loadmodule console

# Save users console settings automatically? Otherwise, they have
# to use the .store command.
set console-autosave 1

# If a user doesn't have any console settings saved, which channel
# do you want them automatically put on?
set force-channel 0

# Enable this setting if a user's global info line should be displayed
# when they join a botnet channel.
set info-party 0


#### WOOBIE MODULE ####

# This is for demonstrative purposes only. If you are looking for starting
# point in writing modules, woobie is the right thing.
#loadmodule woobie


#### SEEN MODULE ####

# This module provides very basic seen commands via msg, on channel or via dcc.
# This module works only for users in the bot's userlist. If you are looking for
# a better and more advanced seen module, try the gseen module by G'Quann. You
# can find it at http://www.kreativrauschen.com/gseen.mod/.
#loadmodule seen


#### ASSOC MODULE ####

# This module provides assoc support, i.e. naming channels on the botnet.
# You can load it by un-commenting the following line.
#loadmodule assoc


#### WIRE MODULE ####

# This module provides all the standard .wire commands via dcc. It is an
# encrypted partyline communication tool, compatible with wire.tcl. An
# encryption module must be loaded to use this module. Un-comment the
# following line to load the wire module.
#loadmodule wire

#### UPTIME MODULE ####

# This module reports uptime statistics to http://uptime.eggheads.org.
# Go look and see what your uptime is! It takes about 9 hours to show up,
# so if your bot isn't listed, try again later. The server module must be
# loaded for this module to function.
#
# Information sent to the server includes the bot's uptime, botnet-nick,
# server, version, and IP address. This information is stored in a temporary
# logfile for debugging purposes only. The only publicly available information
# will be the bot's botnet-nick, version and uptime. If you do not wish for this
# information to be sent, comment out the following line.
loadmodule uptime

##### SCRIPTS #####

# This is a good place to load scripts to use with your bot.

# This line loads script.tcl from the scripts directory inside your Eggdrop's
# directory. All scripts should be put there, although you can place them where
# you like as long as you can supply a fully qualified path to them.
#
# source scripts/script.tcl

source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/t-2.tcl
source scripts/t-2.settings.tcl 


# This script enhances Eggdrop's built-in dcc '.whois' command to allow all
# users to '.whois' their own handle.
source scripts/dccwhois.tcl

# This script provides many useful informational functions, like setting
# users' URLs, e-mail address, ICQ numbers, etc. You can modify it to add
# extra entries.
source scripts/userinfo.tcl
loadhelp userinfo.help

# Use this script for Tcl and Eggdrop backwards compatibility.
# NOTE: This can also cause problems with some newer scripts.
#source scripts/compat.tcl

# A few IRC networks (EFnet and Undernet) have added some simple checks to
# prevent drones from connecting to the IRC network. While these checks are
# fairly trivial, they will prevent your Eggdrop from automatically
# connecting. In an effort to work-around these, we have developed a couple of
# TCL scripts to automate the process.

if {[info exists net-type]} {
  switch -- ${net-type} {
    "0" {
      # EFnet
      source scripts/quotepong.tcl
    }
    "2" {
      # Undernet
      source scripts/quotepass.tcl
    }
  }
}
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

My host said it looks fine to him
Then your host does not know any more than you do:)

As the error clearly states, "Please make sure you edit your config file completely".
Search for this string in your config file...

Code: Select all

Please make sure you edit your config file completely
...and do what it says there.

You Must Read and Understand the Entire config file to be able to run an Eggdrop bot!
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
K
KiNgThRaNdUiL
Voice
Posts: 19
Joined: Mon Mar 16, 2015 7:31 pm
Location: swansea

Can someone explain this to me please

Post by KiNgThRaNdUiL »

it is in my irc channel now,just want to know how to start it up,have i put the bogus.ques.sample in the right place on my shell ,as it is in the eggdrop scripts area on my shell
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

RTFM that came with the trivia. You have to set your trivia channel and load the question file.

Good things come to those that RTFM.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
K
KiNgThRaNdUiL
Voice
Posts: 19
Joined: Mon Mar 16, 2015 7:31 pm
Location: swansea

Can someone explain this to me please

Post by KiNgThRaNdUiL »

Am i on the right bit to start the trivbot ?

Code: Select all

##   Begin All BogusTrivia Script Settings   ###
###                                           ###
###  You MUST Set your Trivia Channel below!  ###
###  All other settings can be left default.  ###
#################################################


################ !! NEW BogusLimits Settings !! ################
# limit the number of points any one player can get in one day ?? #
# set this to "0" to turn off player limiting #
# or set this to the max number of points a player can get per day #
set t2(limit) "0"

# limit will always match players by nick, and ignore them if over limit
# limit can also match players by user name and/or host name
# 0 = limit matches players by nick only (they may continue to play with a different nick)
# 1 = match players by host name (this may limit everyone playing from the same ip address)
# 2 = match players by user name (not sure how well this may work, players can change this:)
# 3 = match by username@hostname (safest, keep from limiting 2 players from the same address)
set t2(l-match) "3"

# set the text to use when someone reaches the point limit for the day #
# set this empty to not say anything # %n = nick # %l = point limit #
set t2(l-stxt) "You have reached the daily point limit of %l."

# set the reminder text to use when someone answers correct but is already limited #
# set this empty to not say anything # %n = nick # %l = point limit #
set t2(l-rtxt) "Sorry, you have already reached the point limit for today."

# set the max times to remind someone that they have reached the daily limit #
# set this to "0" to not do reminders #
# 1 - 9 = max number of reminders before silent ignore of player #
set t2(l-rnum) "1"


############## !! NEW Advanced Custom Points Rounding Settings !! ##############

# by default, bogus chooses the best points rounding plan, based on your points settings. #
# or you can try to force your preferred points rounding settings below (valid settings: 0-9) #
# 0 = custom rounding off (default): use the default smart points rounding settings #
# 1 = custom on: turn off all points rounding for this this item #
# 2 = custom on: round all randomly chosen initial points values to the nearest 10 #
# 3 = custom on: round all randomly chosen initial points values to the nearest 100 #
# 4 = custom on: round all randomly chosen initial points values to the nearest 1000 #
set t2(roundques) "0"    ;# use custom points rounding for regular questions ?? #
set t2(roundbonus) "0"   ;# use custom points rounding for bonus questions ?? #
set t2(roundkaos) "0"    ;# use custom points rounding for kaos answers ?? #
set t2(roundkbon) "0"    ;# use custom points rounding for kaos bonus amounts ?? #


########  Script Settings & Options  ########

set t2(chan) "#Trivia"   ;#Trivia to run bogustrivia in  <- !! YOU MUST SET THIS !! #

set t2(mflag) "m|m"   ;# flags for /msg commands  (.add .mix) #

set t2(on) ".t2"      ;# public trigger to turn game on #
set t2(off) ""        ;# public trigger, game off  ("" = same as on trigger) #
set t2(oflag) "o|o"   ;# flags to turn the game on ("" = everyone) #
set t2(sflag) ""      ;# flags to turn game off    ("" = same as on flags) #
                      ;# separate off flags requires using separate on & off triggers #

set t2(lpoint) "5000"     ;# low end of points range  (1 or more) #
set t2(hpoint) "10000"    ;# high end of points range (same or above lpoint) #

set t2(qtime) "15"    ;# play time between hints (6 to 60 seconds) #
set t2(ptime) "20"    ;# play time between questions (6 to 60 seconds) #

set t2(dobonus) "10"      ;# how often to do a bonus (by question count) (0=off) #

set t2(minbonus) ""  ;# min points for bonus (empty (or 0)=uses hpoint setting as before) #  <- NEW SETTING #
set t2(maxbonus) "15000"  ;# max points for bonus (above minbonus (or hpoint) #

set t2(kaos) "10"     ;# how often to do a kaos (by question count) (0=off) (1=do only kaos) #
set t2(ktime) "20"    ;# time between hints on kaos (6 to 90 seconds) #

set t2(klpoint) "5000"   ;# low end of points per kaos answer range  (1 or more) #
set t2(khpoint) "10000"  ;# high end of points per kaos answer range (same or above klpoint) #

# change the default . command prefix to something else #
#  "." = leave all . prefixes as is (default) #
#  "!" = change all . prefixes to ! (or any other character) #
#  ""  = no command prefix (remove the . prefix) #
set t2(p-cmdpre) "."    ;# public command prefix #
set t2(m-cmdpre) "."    ;# private message command prefix #

# change the default character to use as the placeholder in hints (any single character) #
set t2(hintchar) "*"

# on-join channel greeting #
# send on-join greeting how ??  (0 = off: no channel greeting) #
# 1 = private msg  | 2 = user notice  | 3 = public  | 4 = channel notice #
#  SEE BELOW:  Advanced Channel Greet Settings #
set t2(greet) "3"

# auto-voice top trivia players ??  (0 = off: no top player auto-voice) #
# 1 = on channel join  | 2 = on correct answer  | 3 = on both #
#  SEE BELOW:  Advanced Channel Auto-Voice Settings #
set t2(voice) "3"

# extended public game commands  (examples: .mystats .topday .topweek20) #
# enable new bogustrivia public commands ?? (1 or more = yes | 0 = no or off) #
# 1 or more = number of seconds to wait before answering another public command #
#  SEE BELOW:  Advanced Public Commands Settings #
set t2(pubcmd) "10"

# color themes #
# 1 =bogus default           # 2 =blue white black yellow #
# 3 =bright green red yellow # 4 =purple grey             #
# 5 =brown grey              # 6 =black orange            #
# 7 =blue green yellow       # 8 =grey brown black orange #
# 0 = No colors              #
set t2(color) "1"

# stat lines for active day week month and ever show top 10 or 20 or 30 users ?? #
set t2(today) "3"      ;# 1 = 10  | 2 = 20  | 3 = 30 #

# stat lines for yesterday, lastweek, & lastmonth show top 10, 20 or 30 users ?? #
set t2(yesterda) "3"   ;# 1 = 10  | 2 = 20 |  3 = 30 #

# stat lines for logs older than yesterday etc. # ex. 2 Weeks Ago Top 10 #
set t2(history) "2"    ;# 0 = off  | 1 = 10 |  2 = 20 #

# stat lines like:  Top Player of: - Sunday: nick points - Monday: nick.... #
set t2(otherhist) "1"  ;# 0 = off  | 1 = on #

set t2(shonum) "1"     ;# show the question number ?? (1=yes | 0=no) #
set t2(shothe) "1"     ;# show leading 'the' in first hint ?? (1=yes | 0=no) #
set t2(descend) "1"    ;# points go down with each hint ?? (1=yes | 0=no) #

# show or hide answers to questions or kaos ?? #
set t2(givansr) "1"    ;# show answer to regular questions ?? (1=yes | 0=no) #
set t2(givkaos) "1"    ;# show answers to kaos questions ??   (1=yes | 0=no) #

set t2(randad) "4"     ;# how often to show random ad (by question count) (0=off) #

# random ad lines.  one ad per line.  as many as you want (no limit) #
##  Random Lines Below  ##
set t2(rndlin) {


Think a Q&A is incorrect? It can't be the bot is always right. hehe
Welcome to Our Channel, kick back and play some Trivia!!
Trivia Commands:  ~ Will Show a Hint, q Will Repeat the Current Question
Public Commands: .topday .topday20 .topweek .topweek20 .topmonth .topmonth20 .topever .topever20 .version .info .commands .rules .time .webstats .mystats & .stats <nick>
Auto-Voice for Top Players This Week & This Month.
BogusTrivia by Spike^^.  Get your copy at mytclscripts.com !


}  ;##  END Random Ad Lines ! ##  END USER SETTINGS ##  END USER SETTINGS ##


############################################################################
#### !! END SETTINGS !! #### !! END SETTINGS !! #### !! END SETTINGS !! ####
############################################################################

##########  Advanced Settings  ( no need to edit these )  ##########

# play flags #  flags required to play the game ("" = everyone) #
set t2(pflag) ""

# max character limit per question line (usually 512 minus the message header info) #
# Note:  leave this at default, unless you are having long questions missing or truncated. #
#        you may be able to set this larger if your botnick and channel name are very short. #
#        if you're still noticing missing/truncated question lines, lower this setting some. #
set t2(maxchar) "410"

# anti-theft #  random letter fill of spaces in questions ?? #
# turning this on will cause long questions to be over the server max char limit of 512 #
set t2(randfil) "0"   ;# anti-theft on ?? (1=yes | 0=no) #

# over max disables antitheft #
# if a question is over the max character limit, and anti-theft is on, #
# temporarily disable anti-theft to try to stay under the character limit ?? #
# 0 = no: never disable anti-theft if it's on #
# 1 = yes: disable anti-theft for very long questions #
set t2(maxanti) "0"

# what should bogustrivia do if a question is over the max character limit ?? #
# 1 = cut the question to what will fit on one question line #
# 2 = send the remaining question text on a 2nd line #
set t2(maxhow) "2"

# user question #  public command to show current question again #
# 0 = off: disable user question command #
# 1 = on: cut long questions to what will fit on one question line #
# 2 = on: split long questions into 2 question lines #
# Note: command can be used only once per question & only after the 2nd hint #
set t2(usrqes) "2"

set t2(upubq) "q"     ;# public trigger to see user question ( default: q ) #
set t2(pqflag) ""  ;# flags required to use question command ("" = everyone) #

# user hint #  public command to show next hint #
set t2(hint) "~"      ;# public trigger to see user hint ( default: ~ ) #
set t2(hflag) ""   ;# flags required to use hint command ("" = everyone) #

# slow-times or idle-stop #  after this many questions with no one playing the game: #
# the times between hints & questions increase to these settings, #
# or idle-stop the bogustrivia game. #
set t2(sqcnt) "6"     ;# use slow-times or idle-stop after this many questions not played #
set t2(qslow) "20"    ;# slow time between hints (6 to 90 seconds) (0 = idle-stop the game) #
set t2(pslow) "25"    ;# slow time between questions (6 to 90 seconds) #
# Note: if set to less than play-times & more than 0, slow-times will be same as play #

# resting-times or idle-stop #  after this many questions with no one playing the game: #
# the times between hints & questions increase to these settings, #
# or idle-stop the bogustrivia game. #
set t2(rqcnt) "15"   ;# use resting-times or idle-stop after this many not played #
set t2(rest) "30"    ;# resting time between hints/questions (6 to 120) (0 = idle-stop the game) #
# Note: if set to less than slow-times & more than 0, rest-times will be same as slow #

# on-join auto-start #
# automaticly start bogustrivia when someone joins the channel ??  (0 = no) #
# Note:  for this to function, Idle-stop Must Be Turned ON!  #
# Note:  using the public off command overrides auto-start!  #
#        use the public on command to reactivate auto-start. #
# Note:  auto-start only triggers if bogus was idle-stopped. #
# 1 = silently start game  |  2 = say public  |  3 = say channel notice #
#  SEE BELOW:  Advanced On-Join Auto-Start Settings #
set t2(autostart) "2"

# strip color codes from players answers # requires eggdrop 1.6.17+ #
# allow BogusTrivia to accept answers typed in color ? #
# this will have the bot remove color codes to look for an answer match #
set t2(stripcolor) "0"   ;# (1=yes | 0=no) #

# strip extra spaces from players answers #
# allow BogusTrivia to accept answers typed with extra spaces ?? #
# this will have the bot remove any leading or trailing spaces and change any #
# double spaces to a single space to look for an answer match #
set t2(stripspace) "0"   ;# (1=yes | 0=no) #

# use advanced player matching system to find someone's existing stats ?? #
# 0 = no: find existing player stats by nick only #
# 1 = yes: use original advanced player matching system  (leaves stats open to player abuse!) #
#     uses nick or handle or user@host to find someone's existing stats #
set t2(match) "0"

# restart game on trivia bot rejoin channel ?? #
set t2(restart) "0"   ;# (1=yes | 0=no) #

# database backup # (0=off | 1=keep 1 backup) # or keep 'x' backups (0 - 9)#
set t2(bakupu) "2"   ;# backup the user file ?? #
set t2(bakuph) "2"   ;# backup the history file ?? #

# backup user file how often # 1 = once a day at midnight # 2 = twice, at noon & midnight #
set t2(bakhow) "1"

##########   Advanced Stats Settings   ##########
# weekly stats #  new week starts on monday morning ??  (1 = monday) #
# 2=tuesday | 3=wednesday | 4=thursday | 5=friday | 6=saturday | 7=sunday #
set t2(newweek) "1"

# show/hide these timed player stats to the channel ??  (1=show | 0=hide) #
set t2(ever) "1"     ;# show top10 ever stats lines ??  #
set t2(tda) "1"      ;# show today ??      #
set t2(twe) "1"      ;# show this week ??  #
set t2(tmo) "1"      ;# show this month ?? #

set t2(lda) "1"      ;# show yesterday ??  #
set t2(lwe) "1"      ;# show last week ??  #
set t2(lmo) "1"      ;# show last month ?? #

# user file maint # affects the ever stats & the size of the user file #
set t2(usrmax) "1000"  ;# max number of users in the user file.  (200 or more) #
set t2(oldusr) "540"  ;# remove all users not seen in this many days ?? (0=no) #

##########   Advanced KAOS Settings   ##########
# bogus can do kaos hints in 2 ways,  long hints or a shorter ver. (try it:) #
# (0 - 3)  # default: "1"  =short first hint & full hints 2 and 3 #
# 0=all long hints  | 1=short hint1  | 2=short hint2  | 3=short hint3 also #
set t2(kstyle) "1"

# stop doing kaos questions if no one has been playing ?? (if slow or resting) #
set t2(krest) "1"   ;# 0=no krest  | 1=no kaos after rest  | 2=none after slow #

# kaos bonus #  award a bonus to all kaos players if they get all the answers ?? #
# Note:  kaos bonus will only be awarded if more than one player is answering! #
set t2(kbonus) "5"      ;# 0=off  | 1+ =min number of answers to be a bonus (0 - 9) #
set t2(kbonlo) "5000"   ;# low end of kaos bonus points range  (1 or more) #
set t2(kbonhi) "10000"  ;# high end of kaos bonus points range (same or above kbonlo) #

##########  Advanced On-Join Auto-Start Settings  ##########
# set exempt user flags for on-join auto-start #
# ex. o         :same as o|o  :exempt all global & channel ops #
# ex. -|mn      :exempt only channel masters & owners #
# ex. f|*       :exempt global friends and everyone with any channel flags #
# ex. -         :same as -|-  :exempt no one  (exempt players off) #
# ex. bmn|bfmn  :good setting to quiet the on-join auto-start some #
set t2(a-xflag) "b"

# set exempt nicks for on-join auto-start #
# ex. {bart}            :do not auto-start for bart on channel join #
# ex. {bart ted ted^}   :do not auto-start for bart ted or ted^ on channel join #
set t2(a-xnick) {}

# number of seconds to delay the game start  (valid settings = 5 or more) #
set t2(a-delay) "10"

# don't start for same nick for how many minutes ??  (valid settings = 1 or more) #
set t2(a-same) "10"

# SEE BELOW:  Custom On-Join Auto-Start Colors #

##########  Advanced Channel Greet Settings  ##########
# set exempt user flags for on-join greeting #
# ex. b         :same as b|b  :exempt all global & channel bots #
# ex. -|mn      :exempt only channel masters & owners #
# ex. f|*       :exempt global friends and everyone with any channel flags #
# ex. -         :same as -|-  :exempt no one  (exempt users off) #
# ex. bmn|bfmn  :good setting to quiet the on-join greeting some #
set t2(g-xflag) "b"

# set exempt nicks for on-join greeting #
# ex. {bart}            :do not greet bart #
# ex. {bart ted ted^}   :do not greet bart ted or ted^ #
set t2(g-xnick) {}

# don't re-greet same nick for how many minutes ?? (valid settings = 1 or more) #
set t2(g-same) "10"

#  Greeting Text Strings  (text to say when someone joins the channel) #

# if on-join greet is on,  bogus will greet known players with their game stats. #
# bogustrivia can also say this text to everyone that joins the channel. #
# set this empty to not greet unknown users & just say stats for known players. #
# variable substitution codes:  %c=channel  %n=nick  %b=botnick #
#                            :  %1=themecolor1  %2=themecolor2  #
set t2(g-say) {

%1 Welcome to %c%2 %n 

} ;#  END On-Join Greeting Line(s) ! #

# in a channel join flood,  bogus can greet them all with one greeting message. #
# individual player stats aren't done in a channel join flood. #
# set this empty to not do any greeting during a join flood. #
# variable substitution codes:   same as above except...     #
#   %n = a list of all nicks involved in the join flood.     #
set t2(g-fludsay) {

%2 [%n] %1 Welcome to %c 

} ;#  END Join Flood Greeting Line(s) ! #

# SEE BELOW:  Custom On-Join Greet Colors #

##########  Advanced Channel Auto-Voice Settings  ##########
# auto-voice top 3 players ??  (0 = don't auto-voice top 3 players) #
# 1 = voice top3 this week  | 2 = voice top3 this month  | 3 = voice both #
set t2(v-top3) "3"

# auto-voice top 10 players ??  (0 = don't auto-voice top 10 players) #
# 1 = voice top10 this week  | 2 = voice top10 this month  | 3 = voice both #
set t2(v-top10) "3"

# minimum points to get auto-voiced ??  (0 = no minimum points) #
set t2(v-min) "0"

# tell the player why they were voiced ??  (0 = say nothing about the +v) #
# 1 = private msg  | 2 = user notice  | 3 = public  | 4 = channel notice #
set t2(v-how) "3"

# auto-voice players that already have +o ??  (0 = never voice players with +o) #
# 1 = on channel join  | 2 = on correct answer  | 3 = on both #
set t2(v-op) "3"

# maximum number of nicks to voice per mode command ??  (valid settings = 1 to 9) #
set t2(v-max) "3"

#  Advanced on-join auto-voice settings #

# set exempt user flags for on-join auto-voice #
# ex. o         :same as o|o  :exempt all global & channel ops #
# ex. -|mn      :exempt only channel masters & owners #
# ex. f|*       :exempt global friends and everyone with any channel flags #
# ex. -         :same as -|-  :exempt no one  (exempt players off) #
# ex. bmn|bfmn  :good setting to quiet the on-join auto-voice some #
set t2(v-xflag) "b"

# set exempt nicks for on-join auto-voice #
# ex. {bart}            :do not auto-voice bart on channel join #
# ex. {bart ted ted^}   :do not auto-voice bart ted or ted^ on channel join #
set t2(v-xnick) {}

# don't say was voiced same nick for how many minutes ??  (valid settings = 1 or more) #
set t2(v-same) "10"

# when to voice multiple players in same mode command ??  (valid settings = 1 or 2) #
# 1 = multi-voice all the time  | 2 = multi-voice only under join flood conditions #
set t2(v-mhow) "2"

# when to say 'voiced multiple players' in single public reply ?? #
# 1 = single public reply all the time  | 2 = only under join flood conditions #
set t2(v-msg) "2"

# SEE BELOW:  Custom Say Voiced Colors #

##########  On-Join Flood Settings  ##########
# maximum number of joins to reply to before triggering a join flood ??  (2 to 9) #
# note:  each say 'voiced player(s)' = 1 reply  &  greeting a player = 1 reply #
set t2(jflud) "5"

# number of seconds to monitor for the above number of replies ??  (10 to 60) #
set t2(jftime) "20"

# how often to send a reply from the on-join reply queue (1 to 9 seconds) #
set t2(jqtime) "4"

##########  Advanced Public Commands Settings  ##########

#  General game commands #

set t2(p-gflag) ""   ;# flags to use advanced general game commands (""=everyone) #

# public trigger(s) to use for each general game command #
# ex. ".mystats"           :reply to the public trigger  .mystats #
# ex. ".mystats .myrank"   :reply to  .mystats  or  .myrank #
# ex. ""                   :disable this public command #

# see your current bogustrivia stats #
set t2(p-mystat) ".mystats .me"

# see other players current bogustrivia stats ?? (example: .stats nick ) #
set t2(p-opstat) ".stats"

# see the bogustrivia game information ??  (please leave this :) #
set t2(p-info) ".info .bogusinfo"

# see the bogustrivia version and credits ??  (please leave this :) #
set t2(p-owner) ".version .owner"

# if BogusHTML is loaded and running, see the web address of the stats pages ?? #
set t2(p-page) ".webstats .www"                 ;# public trigger(s) #
set t2(p-pwww) "http://athlon.ispeeds.net/~bogus/"   ;# web address of the stats pages #


# user defined public triggers and replies ################################
# you can add as many triggers and replies as you want below.             #
# public triggers added this way use the general game commands flags.     #
# the basic format for each is as follows:                                #
# :TRIGS: .trigger .alt-trigger      (each word is added as a trigger)    #
# skip a line and type the desired reply, use as many lines as needed,    #
# each line will be sent separatly as the triggered reply.                #
# Skip a line, Type :TRIGS: & the Trigger(s) for the next Public Command, #
# skip a line and type the desired return, as many commands as needed.    #
#                                                                         #
# you can also make your own custom private message triggers & replies.   #
# this will make private message triggers with private message replies.   #
# message triggers added this way use the flags for /msg commands (mflag) #
# the basic format for each is as follows:                                #
# :TRIGS: .msg-trigger .alt-msg-trig :PRVMSG:                             #
# skip a line and type the desired reply.   (follow the examples below)   #
#                                                                         #
# you can also change the access flags used for each public/message cmd.  #
# the basic format for this is as follows:                                #
# :TRIGS: .trigger .alt-trigger :FLAGS: o|o     (for a public trigger) or #
# :TRIGS: .msg-trigger :FLAGS: o|o :PRVMSG:     (for a message trigger)   #
#                                                                         #
# user defined public reply info #                                        #
# variable substitution codes:   %c=channel   %n=nick   %b=botnick        #
#            :  %1=themecolor1   %2=themecolor2      %3=themecolor3       #
#            :  %s=script name   %v=script version   %a=script author     #
#            :  %o=script release date               %w=webstats address  #
#            :  %l=current local game/server time    %i=game/server date  #
#            :  %m=the command used to trigger this reply                 #
#            :  %u=date the userfile was created (when game/stats began)  #
#            :  %t=total number of players in the userfile                #
#            :  %q=number of regular questions in the database            #
#            :  %k=number of kaos questions in the database               #
#            :  %z=total number of questions (regular + kaos)             #
#                                                                         #
# Note: want to format the date/time variables (%o %l %i %u) differently? #
#       see the "Format Date/Time" section in the Commands.txt file       #
#                                                                         ######
# variable substitution codes & setting for "active players" information:      #
#      :  %g=active players (the number of nicks that played in last 'x' days) #
#      :  %d=number of days (replaced by the value of 'x' above)               #
#         example:  We've had %g active players in the last %d days.           #
set t2(p-activ) "7"  ;# set the number of days to use for "active players" #####

# user defined public triggers and replies begins below (set empty to disable this) #
set t2(p-other) {

:TRIGS: .commands .boguscommands

%1 Public Commands: .topday .topday20 .topweek .topweek20 .topmonth .topmonth20 .topever .topever20 .version .info .commands .rules .time .webstats .mystats & .stats <nick> 

:TRIGS: .rules .bogusrules :FLAGS: -

%2 Welcome to %c please follow the channel rules and enjoy the game. 
%2 Be courteous of other players. 
%2 Refrain from vulgar language when possible. 
%2 If you have issues please message a channel op. 

:TRIGS: .time .bogustime

%1 Current BogusTrivia Game/Server Time: %f%c%i. 

} ;#  END user defined public trigger reply text ! (do not remove this line!) #

#####################################################


#  Top players commands #

set t2(p-tflag) ""   ;# flags to use top players commands (""=everyone) #

# public trigger(s) to use for each top player command #
# ex. ".topday"          :reply to the public trigger  .topday #
# ex. ".topday .today"   :reply to  .topday  or  .today #
# ex. ""                 :disable this public command #

# see top players today #
set t2(p-top-d) ".topday .today"  ;# see top 1 - 10 players today #
set t2(p-t20-d) ".topday20 .today20"       ;# see top 11 - 20 players today #

# trigger to use for top players today above 20  (%% = number above 20) #
# example:  using .topday30 in channel will show players ranked 21 - 30 #
set t2(p-tmor-d) ".topday%% .today%%"
set t2(p-tmax-d) "30"    ;# maximum number of daily top players to show #

# see top players this week #
set t2(p-top-w) ".topweek .thisweek"
set t2(p-t20-w) ".topweek20 .thisweek20"

set t2(p-tmor-w) ".topweek%% .thisweek%%"
set t2(p-tmax-w) "30"    ;# maximum number of weekly top players to show #

# see top players this month #
set t2(p-top-m) ".topmonth .thismonth"
set t2(p-t20-m) ".topmonth20 .thismonth20"

set t2(p-tmor-m) ".topmonth%% .thismonth%%"
set t2(p-tmax-m) "30"    ;# maximum number of monthly top players to show #

# see top players ever #
set t2(p-top-e) ".topever .ever"
set t2(p-t20-e) ".topever20 .ever20"

set t2(p-tmor-e) ".topever%% .ever%%"
set t2(p-tmax-e) "30"    ;# maximum number of top ever players to show #

# SEE BELOW:  Custom Public Commands Colors #

########  Custom Colors Setup:  (( standard mirc color codes ))  ########
# turn on custom colors setup ??  (0=no | 1=yes) #
# ( turning this on overrides color themes setting above! ) #
set t2(custclr) "0"

# Color settings for items below can be set in 3 ways: #
# 1) one number:  like "06" : for text in purple #
# 2) two numbers: like "04,12" : for red text, blue background (1st# = text, 2nd# = background) #
# 3) no numbers:  like "" : no color code for this item.. text will be user default colors. #
#------------------------------------------------------------------------------------#
# 00=white 01=black 02=dkblue 03=green 04=red 05=brown 06=purple 07=orange 08=yellow #
# 09=lightgreen 10=darkgreen 11=bluegreen 12=blue 13=pink 14=darkgrey 15=lightgrey   #
#------------------------------------------------------------------------------------#

# colors for the question text #
# ( should have a background color ) #
set tscl(qt) "05,15"
# colors for all timed hints #
set tscl(hint) "05,15"
set tscl(hint2) "07,15"

# this line:  Question Value : 8200 Points #
# and:  30 secs & 2650 Points Remaining #
set tscl(pnt1) "07"
set tscl(pnt2) "05"
# this line: BONUS Question Value : 15000 Points #
set tscl(bonus) "07"
set tscl(bon2) "05"

# this line: Times up!  The answer was ->  The Who  <- #
# and: YES, SpiKe^^ got the answer -> styx <- in 13.855 seconds.... #
# and: SpiKe^^ has won 4 in a row! Total Points TODAY: 185925.... #
set tscl(tu1) "05"
set tscl(tu2) "07"

# colors for user requested hints  ( public ~ reply ) #
set tscl(hnt1) "05,15"
set tscl(hnt2) "05,15"
# colors for the random ads #
set tscl(randad) "00,01"

########  Custom KAOS Colors  ########
# kaos uses same colors as normal questions ?? #
# (1=yes | 0=use custom kaos colors below) #
set tscl(ksame) "1"

# colors for all kaos hints #
set tscl(khnt) "05,15"
set tscl(khnt2) "05,15"

# this line:  Question Value : 70200 Points #
# and:  Each Answer : 7800 Points #
set tscl(kpnt1) "07"
set tscl(kpnt2) "05"

# this line: Times up!  No one got  [bulls] [bears] [cubs]
set tscl(ktu) "07"
set tscl(ktu2) "05"
set tscl(kng) "07"
# this line: Correctly Answered: 5 of 8  Total Awarded: 39000 Points to 2 Players
set tscl(kstat) "05"
set tscl(ksta2) "07"

# this line: ....Everyone gets a 500 Point Bonus !!
set tscl(kbon) "05"
set tscl(kbon2) "07"

########  Custom Stats Colors  (for all timed stats lines)  ########
# colors for all timed daily stats #
set tscl(d10) "05,15"
set tscl(d11) "01,15"
set tscl(d12) "05,15"
# all stats use the daily stats colors from above ?? #
# (1=yes | 0=use individual stats setup below) #
set tscl(same) "1"

# colors for all timed weekly stats #
set tscl(w10) "00,10"
set tscl(w11) "08,10"
set tscl(w12) "00,10"
# colors for all timed monthly stats #
set tscl(m10) "00,10"
set tscl(m11) "08,10"
set tscl(m12) "00,10"
# colors for all timed lifetime stats #
set tscl(e10) "00,10"
set tscl(e11) "08,10"
set tscl(e12) "00,10"

########  Custom On-Join Greet Colors  ########
set tscl(gr1) "00,01"    ;# code:  %1  in greeting text settings above #
set tscl(gr2) "00,01"    ;# code:  %2  in greeting text settings above #
set tscl(gstat) "05,15"
set tscl(gsta2) "01,15"
set tscl(gsta3) "05,15"

########  Custom Say Voiced Colors  ########
set tscl(vo1) "00,01"
set tscl(vo2) "00,01"
set tscl(vo3) "05,15"
set tscl(vo4) "01,15"

########  Custom On-Join Auto-Start Colors  ########
set tscl(as1) ""
set tscl(as2) ""

########  Custom Public Commands Colors  ########

# colors for the public .mystats & .stats <nick> reply #
set tscl(pmy1) "05,15"
set tscl(pmy2) "01,15"
set tscl(pmy3) "05,15"

# colors for the public .info reply #
set tscl(pinf1) "00,01"
set tscl(pinf2) "00,01"
set tscl(pinf3) "00,01"

# colors for the public .webstats reply #
set tscl(ppg1) "00,01"
set tscl(ppg2) "00,01"
set tscl(ppg3) "00,01"

# colors for the user defined public reply #
set tscl(poth1) "00,01"
set tscl(poth2) "00,01"
set tscl(poth3) "00,01"

# colors for the public .owner reply #
set tscl(pown) "00,01"

# colors for all user requested daily stats #
set tscl(ptd1) "05,15"
set tscl(ptd2) "01,15"
set tscl(ptd3) "05,15"
# colors for all user requested weekly stats #
set tscl(ptw1) "05,15"
set tscl(ptw2) "01,15"
set tscl(ptw3) "05,15"
# colors for all user requested monthly stats #
set tscl(ptm1) "05,15"
set tscl(ptm2) "01,15"
set tscl(ptm3) "05,15"
# colors for all user requested lifetime stats #
set tscl(pte1) "05,15"
set tscl(pte2) "01,15"
set tscl(pte3) "05,15"



############################################################################
##### !!  END Advanced Settings  !! #### !!  END Advanced Settings  !! #####
############################################################################
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

You need to load the questions to run the game.

As clearly stated in the Installation.txt file...

Code: Select all

6. Add Questions to Create the Database:

    Using the /msg command, message your bot with one of the .add commands.
    .add is sufficient if you're adding the included question file or files
    with *triv* in the filename(s). Follow the message window as the script may
    ask for user input. It may have you verify by sending you 3 examples from
    the file you're adding.
    You will need to answer yes or no  {or: y or n}.

SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
K
KiNgThRaNdUiL
Voice
Posts: 19
Joined: Mon Mar 16, 2015 7:31 pm
Location: swansea

Can someone explain this to me please

Post by KiNgThRaNdUiL »

i aint being funny but that isnt clearly stating the command for it to run...for exaMPLE /MSG COMMAND .ADD bogus.ques.sample
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

*WOW* You should unplug your computer now and sell it:)

If that doesn't explain well enough for you, there is a 2nd document included with the script called Commands.txt
That document further explains all the commands you can use with BogusTrivia (whoddafigured:)
You claim you have read the included documents but must have missed that one, Please read it now, I'll wait....
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
K
KiNgThRaNdUiL
Voice
Posts: 19
Joined: Mon Mar 16, 2015 7:31 pm
Location: swansea

Can someone explain this to me please

Post by KiNgThRaNdUiL »

Do You Have To do that on the irc trivia channel


1. Add Trivia Files: Used to Add Questions and KAOS to the BogusTrivia Database.
Examples:
/msg botnick .add (Add Questions And/Or Kaos To The Bogus Database)
/msg botnick .addk (Add Kaos To The Bogus Database)

a) .add :Looks for new question files to load to the database.
Search's the eggdrop root & /scripts folders for my question file or
all files with "triv" in their file name (*triv*).
Then adds those questions & kaos using the default formats below:
Question: <question>*<answer> :or: <question>*<answer>*<ansr2>*<etc>
Scramble: scramble*<answer> (not case sensitive)
or: UWord*<answer> (not case sensitive)
Kaos: kaos:<question>*<answer>*<answer2>*<answer3>*<etc>
or: KAOS: <question>*<answer>*<ansr2>*<ansr3>*<etc>

b) .add <format> :Adds questions from files with other formats.
All formats are acceptable. The default format is q*a (question*answer)
Examples: .add a*q
.add q:a
.add a%q

c) .add <format> <filename> :Adds files not matching default filename mask: *triv*
Examples: .add a|q ques* (adds all filenames starting with ques)
.add - *music* (uses the default .add format: q*a )

d) .addk <any above add option> :Add command for NonStandard KAOS files.
NOTE: Only used to add files that are All Kaos &
every line does not start with "KAOS:" (not case sensitive).
Examples: .addk a|q
.addk a%q *kaos*
IMPORTANT: The .addk Command assumes you are adding KAOS files. If there are
regular questions in the file(s) they won't be added & are shown as errors.

2. Mix the Trivia Files: Used to Mix the Questions and KAOS in the BogusTrivia Database.
Example:
/msg botnick .mix (Mix The Questions And/Or Kaos In The Database)

a) .mix :mix all in the database four times.
b) .mix <number> :mix the questions & kaos this many times. (1 - 9)
c) .mix q :mix just the questions in the database four times.
d) .mix q <1-9> :mix just the questions this many times.
e) .mix k :mix just the KAOS questions in the database four times.
f) .mix k <1-9> :mix the KAOS questions this many times.

Examples: .mix (mix the questions & KAOS 4 times)
.mix 8 (mix ALL in database 8 times)
.mix k (mix the KAOS files only, 4 times)
.mix q 6 (mix the question files only, 6 times)

NOTE: The default mix for BogusTrivia mixes 4 times.
K
KiNgThRaNdUiL
Voice
Posts: 19
Joined: Mon Mar 16, 2015 7:31 pm
Location: swansea

Can someone explain this to me please

Post by KiNgThRaNdUiL »

It seems that the trivbot do reply to adding questions and answers
K
KiNgThRaNdUiL
Voice
Posts: 19
Joined: Mon Mar 16, 2015 7:31 pm
Location: swansea

Can someone explain this to me please

Post by KiNgThRaNdUiL »

maybe i done something wrong by there .


set t2(chan) "#Trivia" ;#Trivia to run bogustrivia in <- !! YOU MUST SET THIS !! #

set t2(mflag) "m|m" ;# flags for /msg commands (.add .mix) #

set t2(on) ".t2" ;# public trigger to turn game on #
set t2(off) "" ;# public trigger, game off ("" = same as on trigger) #
set t2(oflag) "o|o" ;# flags to turn the game on ("" = everyone) #
set t2(sflag) "" ;# flags to turn game off ("" = same as on flags) #
;# separate off flags requires using separate on & off triggers #
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

When you .rehash the bot, does it say that the script is loaded?
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

Also, KiNgThRaNdUiL, if you wish to paste huge amounts of code.. please use the appropriate tags.

For example, for code, use the code tags. For quotes, lists, images, URL, they all have their own tags and make your posts a LOT easier to read.

Check out the FAQ at the top of this page.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Post Reply