Do you have an idea for a new wiki? Please share it with us here
Take the Dharma Wants You test, all about Lostpedia, here

User:BauerUK/bots

From Lostpedia

Jump to: navigation, search
A screenshot of ThePearl IRC bot running in a Windows .NET console application
A screenshot of ThePearl IRC bot running in a Windows .NET console application

Contents

Information

At present I host 2 bots on the Gamesurge network. The bots run on Microsoft Windows XP and are written entirely in C# using the high-level Meebey SmartIrc4Net library. At present the bots are developed in Visual Studio 2005 with some libraries created in Visual Studio 2008.

For more information on connecting to Lostpedia's IRC channel, see the provided help documentation.

ThePearl

ThePearl operates in #lostpedia and #lostpediatrivia. At present the following triggers are available.

Trigger Notes
!triggers Displays a list of triggers
!lastfm Provides a link to the Lostpedia last.fm group
!lpstats Provides a link to the #lostpedia IRC statistics
!bash x Provides a link (if one exists) to a given bash quote. Without the number a link to the bash page is displayed instead.
!next Shows the amount of time left until the next episode of Lost.
!debateinfo Provides links relating to the Lostpedia debate league
!afterlost Provides a link to the After LOST web comic
!rofl Provides a link to LostROFL.
!tinyurl Displayes TinyURL help
!whereis nickname Displays an approximate location (if possible) of a given nickname based off that users host address.
!whereip IP address Displays an approximate location (if possible) of a given IP or host address.
!xbl Xbox gamertag Displays Xbox Live information for a given gamertag (gamerscore, last played game, etc.)
!xbg Xbox gamertag Displays Xbox Live's last played games list for a given gamertag
!links Provides the last five URL's mentioned in the channel via private message. These are taken from the del.icio.us channel for #lostpedia
.seen nickname Returns the last time the user was seen in the channel according to ChanServ (shows publically)
!forum username Displays basic information about a given username from the Lostpedia forum.
!mininova search-term Returns the first torrent from a search query on public bittorent index Mininova and the next four results in a private notice message.
/msg ThePearl tinyurl channel url Converts a url into a TinyURL and sends the response to a given channel

TheSwan

TheSwan opeartes in #TheSwan and its sole purpose is to replicate the functions of the Swan station computer. The following protocol has been observed since the bot was setup:

  • Every 108 minutes the button must be pushed (ie. the user must enter: 4 8 15 16 23 42)
  • The topic is changed every now and then to display the current time
  • When the timer reaches 4 minutes, the bot will echo the current time more and more frequently
  • If the button is not pushed system failure occurs
  • There are only a limited number of triggers, which are:
Trigger Notes Example Usage
.info Displays general information .info
.time Displays a specific timestamp .time
.ratio Displays ratio related information: current ratio, next ratio, time until next ratio. .ratio
.ratio x Same as .ratio but accepts a ratio to calculate up to, as opposed to the next ratio. .ratio 108

Future of the bots

At the moment my main concern is to move the bots over to the newer Visual Studio 2008 environment and have them run independently from my local machine (at present only TheSwan runs on a dedicated box). I am working on functions every day to improve the bots and am open to suggestions. You can reach me 24/7 in #lostpedia or place suggestions on my talk page or the discussion for this page. You can also contact me on the Lostpedia forum which I check frequently.