- Code: Select all
Topic management script by Henco - irc.geekshed.net #henco
on 1:text:!maintopic *:%channel: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %topic $2- | /topic $chan Topic: %topic %sep %ss %status %sep %info %sep %url }
}
else {
/msg $chan Sorry, $nick only hops/ops can change status.
}
}
on 1:text:!status *:%channel: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %status $2- | /topic $chan Topic: %topic %sep %ss %status %sep %info %sep %url }
}
else {
/msg $chan Sorry, $nick only ops can change status.
}
}
on 1:text:!status2 *:%channel: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %ss $2- | /topic $chan Topic: %topic %sep %ss %status %sep %info %sep %url }
}
else {
/msg $chan Sorry, $nick only hops/ops can change status.
}
}
on 1:text:!url *:%channel: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %url $2- | /topic $chan Topic: %topic %sep %ss %status %sep %info %sep %url }
}
else {
/msg $chan Sorry, $nick only ops can change status.
}
}
on 1:text:!sep *:%channel: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %sep $2- }
}
else {
/msg $chan Sorry, $nick only ops can change separator.
}
}
on 1:text:!trefresh:%channel: { topic $chan Topic: %topic %sep %ss %status %sep %info %sep %url }
on 1:text:!info *:%channel: {
if ($nick isop $chan || $nick ishop $chan) {
{ /set %info $2- | /topic $chan Topic: %topic %sep %ss %status %sep %info %sep %url }
}
else {
/msg $chan Sorry, $nick only ops can change topic info.
}
}
When you first load the script, you'll need to type '/set %channel #yourchannelhere' (without quotes), to set your channel name.
The things to change/set are !maintopic,!status,!status2,!info and !url.
All these are segments of the topic, and are separated by a separator of your choice.
!status2 should be set to something like 'Henco is', and then !status set to something like 'here'. I have done this for ease of use so you only have to do !status here to change your status, no need for the 'Henco is'.
The !trefresh command is for when someone changes the topic manually, and you need to reset it to your bot's system, or when the topic is lost for whatever reason (eg. services down).
So, lets go through it:
First, you would load the script on your bot and then type '/set %channel #henco' (without the quotes, replacing #henco with your channel).
Then, you would type !sep followed by the seperator you want in your topic, e.g. !sep //
You would then set your topic with the !maintopic command, e.g. !maintopic Technology
Next, you would set your status using !status and !status2, e.g. !status2 Henco is, then !status somewhere
After this, you would set your channel info, e.g. !info Please add us to your autojoin
Finally, you would set your website URL, or if you dont have a website, you could use this for more info, e.g. !url http://henrycole.eu/
You would then have a topic that looks something along the lines of this: Topic: Technology // Henco is here // Please add us to your autojoin // http://henrycole.eu/
If you have any questions feel free to talk to me in whatever channels I may be in on geekshed, or pm me on these forums.
Hope it works well for you
Henco