MafBot
September 07, 2010, 02:48:01 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: We are back! The main page is a work in progress so bear with us Smiley
 
  Home   Forum   Help Search Login Register  
* *

Facebook

User

Welcome, Guest. Please login or register.
September 07, 2010, 02:48:01 pm

Login with username, password and session length

Pages: [1]
  Print  
Author Topic: Information on the Regular Functions  (Read 517 times)
Adorable
Administrator
Doctor
*****

Life: +2/-8
Offline Offline

Posts: 96


View Profile
« on: May 18, 2010, 07:54:33 am »

As many of you know, MafBot's expanding in several directions.  Not only does it run the legendary game that is MafBot, but it's also becoming a commonly used bot outside of #Mafia as well.  Currently it has trivial things found on most bots like Bash and the like, but also has unique functions as well.  Here are some commands, the list may be short, but it's growing rapidly.

/invite MafBot #Channel Brings the bot in the channel.  Will stay if the user invited it is either a halfop or higher and the user count is about three.
/Kick #Channel MafBot Add to the kick counter.  5 kicks and the bot will no longer join the channel.
!Part/!Leave/!Begon MafBot Leaves the channel if the user is either a halfop or higher.
!Public <off/disable> Disables public commands.  If a public command is used, the bot will notice the user instead.
!Public <on/enable> Enables public commands.  Anything prefixed with @ will be said in the channel.
!@XBL/!@Xbox <GamerTag> Displays various GamerTag information.  Example: !xbox Major Nelson
!@H3/!@Halo <GamerTag> Displays some of the Halo 3 statistics.  Example: !h3 Major Nelson
!@W/!@WP/!@WhatPulse <UserName> Displays What Pulse stats.  Example: !wp Admin
!@BOFH Show a random Bash Operator From Hell quote.
!@B/!@Bash Show a random Bash.org quote.
!@FML Shows a random fMyLife quote.
!@Urban <Term> Returns the first definition of the term, but only what could be fit one a single line to avoid spam.
!@YT/!@YouTube <term> Searches for a video with the specified term, and if found displays various information.
!@Cyborg/!@Robot <term> Displays what the cyborg acronym stands for.
!@Sexy/!@Sexname <term> Displays the sex meaning behind the acronym.
!@Monster/!@Scary <term> Decodes the monster acronym.
!@Insult <target> Gives a random  insult for the specified target, if given
!@Calc <formula> Calculates the formula.  Expressions that can be used: k (for 1000) down to q (000000000000000) as well as pi and e. Example: !Calc 3k*pi+e
!@Rand/!@Random <number1> [number2> Generates a random number between the two, otherwise returns a one.
!@Choose/!@Pick <selection1> [selection2] ... Picks a random selection, for those who are indecisive.
!@Mama/!Momma Will print a random "your momma" joke out of a database of over 400.
!@Chuck/!Norris Will print a random Chuck Norris joke out of a database of just over 350.
!@Vin/!@Diesel Will print a random Vin Diesel joke out of a database of 150.
!@Fact/!@RandomFact Will print a random fact out of a database of over 1,000.
!@Gaymeter <nick> Will tell how gay the specified user is (or the one using it).  Also supports: love,1337,awesome,etc
!@Lamest Will display the gayest user in the channel.  Also supports: gayest, stupidest, noobest, coolest
!@Rape <nick> Will rape the target with a random message.  Note: public commands must be enabled.
!@Google <term> Will display up to three search results showing on Google, along with the title and link.
!@Weather <zip/city, state/city, country> Will give the current weather and condition info of the specified area.
!@GNews <term> Will display up to three Google News results with the link and description.
!@GVideo <term> Will display up to three Google Video matches based on the search item, along with the link and title.
!@GLocal <term> Will display up to three Local Google hits and corresponding titles and links.
!@GBooks <term> Will display up to three books found by Google, with links and titles.
!@GPatent <term> Will display up to three search results that'll show up on Google's Patent search.
!@Twitter <username> Will print the last Tweet done by the provided username.
!@Stats <RuneScape Name> Will show the stats shown on the highscores of the given RuneScape name.
!@GE <RuneScape item> Will give the Grand Exchange information for the provided item.
!Coke Along with many other drinks too long to list, will hand the desired nick (or yourself) a drink, with a counter.
!Pizza With plenty more food items, will hand a bite to eat to whomever's hungry, and keep a counter, too.
!Flip/!Coin Flips a coin, will land on heads or tails.
!Roll/!Dice <number1> [number2] Will roll number2 amount of dice with number1 sides.  Example: !roll 3 4
!RS Fact Will give a random fact about RuneScape.  Has a database of nearly 200.
!Asc/!ASCII string Returns the ASCII value of each individual character.  Example: !ASCII MafBot
YouTube title fetcher  Whenever a YouTube link is pasted, the script will display the name of the video
Various RuneScript scripts They will be posted shortly.
« Last Edit: August 15, 2010, 02:31:06 am by Adorable » Logged
Adorable
Administrator
Doctor
*****

Life: +2/-8
Offline Offline

Posts: 96


View Profile
« Reply #1 on: May 18, 2010, 07:54:53 am »

The last script I believe deserves its own introduction and explanation.  It is a poll/voting script, which is designed to allow every channel that the bot is on (even channels with the same name on different networks) to have one.  Has an expiration time, which can be either be set by the person starting the poll or the default one of one hour.  It also supports up to five custom selections, unlike most bots that just do a basic yes/no.  The poll commands are as followed:

!poll start/begin/add -t number1 -s number2 <question>  The switches are completely optional, but they do allow for more customization.  If left out then the poll will end in one hour and with only three selections (choices, nominees, or whatever else you want to call them).  If -t is specified, then a number between 1 and 240 must be specified, and that indicates how long the poll will last (yes, it can be up to ten days).  If -s is specified, the second number must be between 1 and 5, and they specify how many different selections the poll will have.  Example: !Poll add -t 24 -s 3 Which nick should I use? That will start the poll with the obvious question, will last 24 hours, and will have three items to choose from.

!Poll end/stop/halt Will stop the current poll and will display the results.
!Poll option/selection/nominee number item Will set the selection number to item.  Example: !Poll option 1 blue cheese Would set selection 1 to blue cheese, so voters can know what they're voting for as well as use the item to actually cast the vote.
!Poll choices/view Will display everything that the users can vote for.
!Poll vote/submit/cast/choose selection Will cast the user's vote for the particular selection, and will keep track of both nick and address to avoid cheating, as well as properly change the vote if so desired.  Can be voted by the number of the selection or the value itself.  Example 1: !Poll cast 1  Example 2: !Poll vote blue cheese
!Poll timer/remainder Will display how much time is left until the poll expires and shows the results.
!Poll help/command/commands Shows a help menu to assists users with the poll system.


All poll modifications such as starting, ending, and changing selections must be done by a halfop or higher.  In case the bot disconnects and reconnects after the poll has ended, it will display the results upon rejoining the channel, and of course will end it so another one could be started.  If it leaves the channel while the poll has not ended, it will rejoin the channel as soon as the timer has expired to display the results.
Logged
Adorable
Administrator
Doctor
*****

Life: +2/-8
Offline Offline

Posts: 96


View Profile
« Reply #2 on: July 28, 2010, 09:50:09 am »

It has been a long while since this has been updated, so I thought I'd bring yet another interesting function that most have found rather amusing.  The function allows the channel staff (those with a halfop or higher) to add their own triggers to the bot.  Since the bot sits on many channels across several networks, the MafBot Staff Team thought it would be worth while to allow each channel have its own unique list of triggers.  While the idea is basic, it's also growing and can end up in something huge.

The commands are as followed: !AddTrigger, !DelTrigger, and !ModTrigger.  All three of those commands can only be used by channel staff, anybody else using it will be ignored.  Here is an explanation for each one.
!AddTrigger <word> <reply> Will add <word> to the trigger list, and when it's said on the channel <reply> will be said.
!DelTrigger <word> Will delete <word> if it has been added.
!ModTrigger <word> <new reply> Will replace the current reply for <word> with <new reply>
Example: !AddTrigger Awesome This channel is awesome

To view the list of current triggers, use !TriggerList.  To actually use one of the created triggers, simply use ~word.  In the earlier example awesome was added, so if you wanted to use it, you'd type in ~awesome.

There are also special words that are evaluated as the trigger is used.  Here's a breakdown of them all.
{nick} specifies the person using the ~trigger
{rnick} specifies a random person in the channel
{chan} specifies the current channel
{time} specifies the current time in EST
{date} specifies the current date, also in EST
{fd} specifies the full date, which will look similar to: Monday 3, July 2007
{uc} specifies the current user count on the channel
{oc} specifies the current op count on the channel
{hc} specifies the current halfop count on the channel
{vc} specifies the current voice count on the channel
Example: !AddTrigger Cool {rnick} is super cool  Whenever ~cool is used, the bot will pick a random user in the channel and will say he/she is super cool.
Logged
Adorable
Administrator
Doctor
*****

Life: +2/-8
Offline Offline

Posts: 96


View Profile
« Reply #3 on: August 15, 2010, 08:06:52 am »

Once again the Regular Functions has been updated, and another post to explain the new features well seems necessary.  The new update brings typing statistics for each user on a channel and network.  

!@Text nick - Shows various typing stats for the given nick on the current channel.  If no nick is specified, then the user's nick will be selected.
!@FullText nick - Shows typing stats for the user throughout the whole network.
!@TopChan stat - Shows the top ten typers for the channel based on
the given stat (keys, words, or lines).  If none is specified, then keys is automatically selected.
!@BottomChan stat - Shows the bottom ten typers
!@TopNet stat - Shows the top ten typers on the whole network based on the given stat
!@Bottom stat - Shows the bottom ten typers on the whole network

Of course, because the bot sits on over half a dozen network, some data such as channel and nick names will repeat.  For that reason we made sure that none will conflict with individual stats for any one user or channel, or even network.  Much like the custom trigger, poll, and public scripts this one will still work even if the same user on the same channel name on two different networks talks.
« Last Edit: August 15, 2010, 08:28:04 am by Adorable » Logged
Pages: [1]
  Print  
 
Jump to:  

Recent

TinyPortal 1.0 beta 5-1
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!