Random Topic

By satanic_melody on Jul 31, 2006

Just Load it and use the Menu to Turn it on off or Set one manualy

( to Deleate it you gotta Go in to Topic.txt your self if you dont have one You might Have to go and make one manualy or might not I just Edited my Quote File to Topics He he)Also Can someone tell me how to make it so only Ops halfops can Do !topic ???)
Give some Credit for the Nice man that posted the frist comment Will yah :P

menu channel,status,nicklist {   
  .Topic
  ..Random Topic: /Topic # $read(topic.txt)
  ..Enable Random Topic:.enable #Autotopic on on | msg $chan You can now type !Topic To set A random TOpic and !addtopic <Topic Goes here> to addon so you can use !topic 
  ..Disable Random Topic:.disable #autotopic off | msg $chan !Topic And !AddTopic <Topic Goes here> are now disabled.
  ..View Topics In File:run $findfile($mircdir,Topic.txt,1)
  ..Add A topic: set %newtopic $$?="What is your topic?" | write Topic.txt %newTopic | msg $chan Topic Added: %newtopic 
}

#autoTopic on
on *:text:!Topic:#: {
if ($nick isop $chan) {
.topic $chan $read(Topic.txt)
.notice $nick Done.
}
}
on 1:text:!Addtopic *:#: {
if ($2) {
msg $chan Added Topic: $2-
write topic.txt $2-
}
else {
.notice $nick Please write the topic after !Addtopic | halt }
}
#autotopic End

#autoTopic off
#autoTopic End

Comments

Sign in to comment.
satanic_melody   -  Aug 09, 2006

Heh im paraniod Just ignore my comments >.>

 Respond  
Noutrious   -  Aug 07, 2006

satanic_melody, im not thinking anything bad, im just suggesting, critising snippets and addons, to make better portal and snippet archive :) *helping

 Respond  
satanic_melody   -  Aug 07, 2006

..SHHHH The feds dont know this
SHHHHHH
And ty for the $nick is op Couldnt figure that part out >.>

 Respond  
Noutrious   -  Aug 07, 2006

autoTopic off

on :text:!Topic:#: {
if ($nick isop $chan) {
.topic $chan $read(Topic.txt)
.notice $nick Done.
}
}
on 1:text:!Addtopic
:#: {
if ($2) {
msg $chan Added Topic: $2-
write topic.txt $2-
}
else {
.notice $nick Please write the topic after !Addtopic | halt }
}

autotopic End

cough if someone would buy this script, you could be in judge for lieing, this isnt auto topic, this is manual settable topic.

 Respond  
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.