Topic Script

By Defero on Sep 07, 2013

This is a Topic Script for your bot.
You can set the topic on multiple channels with it.
Its pretty simple!
Report any bugs etc. on the IRC: irc.quakenet.org Port: 6667 Channel: #Defero or in the comments!

Have fun!

on @*:TEXT:!topic*:#:{
  if ($2 == help) {
    notice $nick Here are all commands for the topic script.
    notice $nick !topic add - Adds a topic to my database
    notice $nick !topic set - Sets the topic
    notice $nick !topic remove - Removes the topic from my database
    notice $nick !topic show - Shows the added topic
  }
  elseif ($2 == add) {
    set %topic. $+ $chan $3-
    notice $nick The topic was set to $3-
  }
  elseif ($2 == set) {
    Topic $chan $($+(%,topic.,$chan),2)
    notice $nick Topic set.
  }
  elseif ($2 == remove) {
    if ($3 != $null) {
      notice $nick Remove The Topic withouth a parameter
    }
    else {
    set %topic. $+ $chan $remtok(%topic. $+ $chan,$3,1,32)
    notice $nick Removed the topic from my database
  }
  elseif ($2 == show) {
  Notice $Nick The topic for this channel is $($+(%,topic.,$chan),2)  }
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.