| 1 |
.\" Terry Ross |
| 2 |
.TH "PageSix" 1 "Mar 02 2006" "Version 8.03" "IRC bot" |
| 3 |
.SH NAME |
| 4 |
PageSix \- Source Mage GNU/Linux IRC service bot |
| 5 |
.SH SYNOPSIS |
| 6 |
|
| 7 |
.BI "!command " arguments... |
| 8 |
.br |
| 9 |
.BI "page_six command " arguments... |
| 10 |
.SH DESCRIPTION |
| 11 |
.B PageSix |
| 12 |
is an Internet Relay Chat 'bot' meant to perform service activities in support of Source Mage GNU/Linux channels on |
| 13 |
.I irc.freenode.net |
| 14 |
.SH OPTIONS |
| 15 |
.SS Conversions |
| 16 |
.br |
| 17 |
.I Distance related |
| 18 |
.RS 2 |
| 19 |
.TP |
| 20 |
.BI "km2mi " "kilometers" |
| 21 |
Given a specified number of kilometers, returns the approximate number of miles. |
| 22 |
.TP |
| 23 |
.BI "mi2km " "miles" |
| 24 |
Given a specified number of miles, returns the approximate number of kilometers. |
| 25 |
.RE |
| 26 |
.I Temperature related |
| 27 |
.RS 2 |
| 28 |
.TP |
| 29 |
.BI "c2f " "celsius" |
| 30 |
Given degrees celsius, returns degrees fahrenheit. |
| 31 |
.TP |
| 32 |
.BI "f2c " "fahrenheit" |
| 33 |
Given degrees fahrenheit, returns degrees celsius. |
| 34 |
.RE |
| 35 |
.I Latitude and Longitude |
| 36 |
.RS 2 |
| 37 |
.TP |
| 38 |
.BI "dms2dd " "deg min sec" |
| 39 |
.RI "Given " "degrees minutes" " and optional " seconds ", returns decimal degrees in the form of dd.ffff. The " degrees ", " minutes " and " seconds " can be seperated by spaces, colons or periods." |
| 40 |
.RE |
| 41 |
.\" Gaze related commands |
| 42 |
.SS Gaze related commands |
| 43 |
These commands are equivalent to gaze commands you would run on your |
| 44 |
Source Mage GNU/Linux machine. Useful if you are on a different |
| 45 |
computer and don't actually have access to gaze. In addition, there are |
| 46 |
a few commands that aren't equivalent to any actual gaze commands, but |
| 47 |
fit best in this category. Can be called with either |
| 48 |
.B gaze command |
| 49 |
or |
| 50 |
.BR command . |
| 51 |
.RS 2 |
| 52 |
.TP |
| 53 |
.BI "gaze creator " spell |
| 54 |
Tells you who created |
| 55 |
.I spell |
| 56 |
originally. |
| 57 |
.TP |
| 58 |
.BI "gaze entered " spell |
| 59 |
Tells you When |
| 60 |
.I spell |
| 61 |
was originally created |
| 62 |
.TP |
| 63 |
.BI "gaze guilty " spell |
| 64 |
Tells you who created |
| 65 |
.I spell |
| 66 |
originally. |
| 67 |
.TP |
| 68 |
.BI "gaze from " target |
| 69 |
Attempts to show what spell |
| 70 |
.I target |
| 71 |
came from. Note that the implementation in ruskie's bot, |
| 72 |
.BR scry , |
| 73 |
is much more effective. |
| 74 |
.TP |
| 75 |
.BI "gaze license " spell |
| 76 |
Tells you what type of license |
| 77 |
.I spell |
| 78 |
falls under. |
| 79 |
.\" gaze maintainer |
| 80 |
.TP |
| 81 |
.BI "gaze maintainer " section |
| 82 |
Gives the name and email address of the maintainer of grimoire section |
| 83 |
.IR section . |
| 84 |
.TP |
| 85 |
.BI "gaze md5 " spell |
| 86 |
Gives the m5sum for |
| 87 |
.IR spell . |
| 88 |
.TP |
| 89 |
.BI "gaze search " phrase |
| 90 |
Searches for |
| 91 |
.I phrase |
| 92 |
in the long and short spell descriptions and in the spell name. Note |
| 93 |
that this uses a database generated four times daily, and is |
| 94 |
significantly faster than the standard gaze version. |
| 95 |
.TP |
| 96 |
.BI "gaze source " spell |
| 97 |
Shows the filename of the source tarball for |
| 98 |
.IR spell . |
| 99 |
.TP |
| 100 |
.BI "gaze source url " spell |
| 101 |
Shows the first (and only the first) source URL for |
| 102 |
.IR spell . |
| 103 |
.TP |
| 104 |
.BI "gaze updated " spell |
| 105 |
Shows the date that |
| 106 |
.I spell |
| 107 |
it was last updated (as opposed to the last modification). |
| 108 |
.TP |
| 109 |
.BI "gaze url " spell |
| 110 |
Gives the URL to the welcome page for |
| 111 |
.IR spell . |
| 112 |
.TP |
| 113 |
.BI "gaze version " spell |
| 114 |
Gives the current (stable OR z-rejected OR games - depending upon where |
| 115 |
.I spell |
| 116 |
is located) version of |
| 117 |
.IR spell . |
| 118 |
.TP |
| 119 |
.BI "gaze versions " spell |
| 120 |
Gives the version number for |
| 121 |
.I spell |
| 122 |
for ALL of the standard grimoires where the spell can be found.. |
| 123 |
.TP |
| 124 |
.BI "gaze what " spell |
| 125 |
Prints the spell's short description. Equivalent to |
| 126 |
.B gaze short spell. |
| 127 |
.sp 2 |
| 128 |
.I Examples: |
| 129 |
.br |
| 130 |
!gaze what vim |
| 131 |
.br |
| 132 |
!gaze what short vim |
| 133 |
.br |
| 134 |
!gaze short vim |
| 135 |
.br |
| 136 |
!what short vim |
| 137 |
.br |
| 138 |
!what vim |
| 139 |
.br |
| 140 |
!short vim |
| 141 |
.TP |
| 142 |
.BI "gaze [what] full " spell |
| 143 |
Prints the spell's description. Equivalent to |
| 144 |
.sp 2 |
| 145 |
.I Examples: |
| 146 |
.br |
| 147 |
!gaze what full vim |
| 148 |
.br |
| 149 |
!gaze full vim |
| 150 |
.br |
| 151 |
!full vim |
| 152 |
.br |
| 153 |
!gaze what long vim |
| 154 |
.br |
| 155 |
!gaze long vim |
| 156 |
.br |
| 157 |
!long vim |
| 158 |
.TP |
| 159 |
.BI "gaze where " spell |
| 160 |
Gives the name of the section that the spell is in. |
| 161 |
.TP |
| 162 |
.B "unmaintained" |
| 163 |
Shows the unmaintained sections. |
| 164 |
.RE |
| 165 |
.SS Bug information |
| 166 |
Used for getting details on a particular bug. |
| 167 |
.RS 2 |
| 168 |
.TP |
| 169 |
.BI "bug info [" # "]" "number" |
| 170 |
Given the bug |
| 171 |
.IR number , |
| 172 |
page_six will return a short discription of the bug, and a link to the bug on |
| 173 |
.I bugzilla. |
| 174 |
.RE |
| 175 |
.SS Bug searching |
| 176 |
Allows you to search |
| 177 |
.I bugzilla |
| 178 |
for bugs by a single |
| 179 |
.I target |
| 180 |
search word or by grimoire section. |
| 181 |
.RS 2 |
| 182 |
.TP |
| 183 |
.BI "bug search [" section "] " target |
| 184 |
Searches for any |
| 185 |
.BR "NEW" , " ASSIGNED" , |
| 186 |
or |
| 187 |
.B REOPENED |
| 188 |
bugs on |
| 189 |
.IR bugzilla , |
| 190 |
using the |
| 191 |
.I target |
| 192 |
word for the search. |
| 193 |
if the optional |
| 194 |
.I section |
| 195 |
is found, it will instead search for all |
| 196 |
.B NEW, ASSIGNED |
| 197 |
or |
| 198 |
.B REOPENED |
| 199 |
bugs in the requested |
| 200 |
.I target |
| 201 |
section. |
| 202 |
.SS Bug checking |
| 203 |
Bug checking checks http://bugs.sourcemage.org for new bugs (this |
| 204 |
will be changed soon to allow you to change the level). You can use |
| 205 |
the full |
| 206 |
.B bug check |
| 207 |
or abbreviate it to |
| 208 |
.B BC |
| 209 |
when you give the commands. |
| 210 |
.I Note: as of 01 March 2006, not all of these commands are fully |
| 211 |
.I implemented. |
| 212 |
.RS 2 |
| 213 |
.TP |
| 214 |
.BI "bug check [" on | off | status ] |
| 215 |
Turns bug checking on or off, or displays the current status. |
| 216 |
.RE |
| 217 |
.RS 2 |
| 218 |
.TP |
| 219 |
.BI "bug check debugging [" on | off | status ] |
| 220 |
Turns bug checking on or off, or displays the current debugging status. |
| 221 |
Debugging output is generally only visible on the the bots' home channel. |
| 222 |
.RE |
| 223 |
.RS 2 |
| 224 |
.TP |
| 225 |
.BI "bug check confirm [" on | off | status ] |
| 226 |
Turns bug check confirmations on or off, or displays the current |
| 227 |
confirm status. All this feature does is print a quick note to the bots' |
| 228 |
home channel whenever a bug check is made. |
| 229 |
.TP |
| 230 |
.BI "bug check time " seconds |
| 231 |
Change the number of seconds bug check waits before running. |
| 232 |
.RE |
| 233 |
.SS Tracker checking |
| 234 |
Tracker checking checks for new posts on the Source Mage GNU/Linux |
| 235 |
web site. Forum topics, personal blog entries, stories, quotes, |
| 236 |
polls etc. all fit in to this category. You can use the full |
| 237 |
.B "tracker check" |
| 238 |
or abbreviate it to |
| 239 |
.B "tc" |
| 240 |
when you give most of the commands. |
| 241 |
.RS 2 |
| 242 |
.TP |
| 243 |
.BI "tracker check [" on | off | status ] |
| 244 |
Turns tracker checking on or off, or displays the current status, |
| 245 |
showing whether it is on or off, how often the checks are made, and |
| 246 |
when the last check was made, and whether debugging and confirmations |
| 247 |
are on or off. |
| 248 |
.TP |
| 249 |
.BI "tracker check debugging [" on | off | status ] |
| 250 |
Turn tracker checking debugging on or off, or displays the current debugging status. |
| 251 |
.TP |
| 252 |
.BI "tracker check confirm [" on | off | status ] |
| 253 |
Turns tracker checking confirmations on or off, or displays the current confirm status. All this feature does is print a quick note to the bots home channel whenever a tracker check is made, if on. |
| 254 |
.TP |
| 255 |
.BI "tracker check time " seconds |
| 256 |
Change the number of seconds tracker check waits before running. |
| 257 |
.SS Miscellaneous commands |
| 258 |
.TP |
| 259 |
.BI "calc " calculation |
| 260 |
Use Google Calc. More than just a simple four function calculator, you can get conversions, etc. |
| 261 |
.TP |
| 262 |
.B "commands" |
| 263 |
Gives a (with any luck, up-to-date) list of the commands available. |
| 264 |
.TP |
| 265 |
.BI "define " "word or phrase" |
| 266 |
Attempts to get and deliver a definition from WordNet. Note that some definitions are very long, and there is currently no way to stop the output. |
| 267 |
.TP |
| 268 |
.BI "context " number |
| 269 |
When you use |
| 270 |
.B !mention |
| 271 |
or |
| 272 |
.BR !lastmention , |
| 273 |
there will be a line number displayed on the left of the string. Use the number to see the line in context. |
| 274 |
.TP |
| 275 |
.B cycle |
| 276 |
Has the bot cycle the current channel (part and immediately rejoin); |
| 277 |
.TP |
| 278 |
.B help |
| 279 |
Get some basic help information from the bot. |
| 280 |
.TP |
| 281 |
.B info |
| 282 |
Get some general information about the bot. |
| 283 |
.TP |
| 284 |
.BI "join " channel |
| 285 |
This command is limited to certain users. Has the bot join the |
| 286 |
specified |
| 287 |
.IR channel . |
| 288 |
.TP |
| 289 |
.BI karma |
| 290 |
Generates an HTML page giving instructions and listing current karma |
| 291 |
levels, then provides the link. |
| 292 |
.TP |
| 293 |
.BI "karma " target " [ score | level ] | [ score | level ] " target |
| 294 |
Gives the current karma level for |
| 295 |
.I target |
| 296 |
.RS 2 |
| 297 |
.I Examples: |
| 298 |
.sp 2 |
| 299 |
!karma page_six level |
| 300 |
.br |
| 301 |
!karma page_six score |
| 302 |
.br |
| 303 |
!karma level page_six |
| 304 |
.br |
| 305 |
!karma score page_six |
| 306 |
.br |
| 307 |
.RE |
| 308 |
.TP |
| 309 |
.BI "karma " target " + | ++ | +5 | - | -- | -5 |
| 310 |
Raises or lowers the karma level for |
| 311 |
.I target |
| 312 |
by 1, 2, or 5 points. |
| 313 |
.TP |
| 314 |
.BI "lastmention [" target ] |
| 315 |
Checks the log and after doing some filtering to exclude certain types |
| 316 |
of lines, gives the last line that |
| 317 |
.I target |
| 318 |
was mentioned on. If |
| 319 |
.I target |
| 320 |
is not included, then it gives the last line that the nick of |
| 321 |
the person giving the command was mentioned. It also generates a file |
| 322 |
showing a significant number of other mentions that it can see over the |
| 323 |
the years. |
| 324 |
.sp 1 |
| 325 |
It will print a line number on the left. You can use this line number with |
| 326 |
the |
| 327 |
.BI "!context " number |
| 328 |
command, to see the line in context. |
| 329 |
.TP |
| 330 |
.B "markers" |
| 331 |
Scrapes the Xplanet Marker data from |
| 332 |
.I http://wiki.sourcemage.org and runs |
| 333 |
it through a sed transform. Makes the basic and transformed versions |
| 334 |
available in a format that can be dropped directly into |
| 335 |
.I ~/.xplanet/markers/sourcemage |
| 336 |
.TP |
| 337 |
.BI "mention [" target ] |
| 338 |
Checks the log and after doing some filtering to exclude certain types |
| 339 |
of lines, gives the last line that |
| 340 |
.I target |
| 341 |
was mentioned on. If |
| 342 |
.I target |
| 343 |
is not included, then it gives the last line that the nick of |
| 344 |
the person giving the command was mentioned. It also generates a file |
| 345 |
showing a significant number of other mentions that it can see over the |
| 346 |
the years. |
| 347 |
.sp 1 |
| 348 |
It will print a line number on the left. You can use this line number with |
| 349 |
the |
| 350 |
.BI "!context " number |
| 351 |
command, to see the line in context. |
| 352 |
.TP |
| 353 |
.BI "nick " nick |
| 354 |
Changes the 'nick' of the bot. Limited to certain users. |
| 355 |
.TP |
| 356 |
.B prisoner |
| 357 |
Temporarily disabled. Runs the dialog from the introduct to the TV |
| 358 |
series "The Prisoner" with the bot |
| 359 |
.BR ib . |
| 360 |
.TP |
| 361 |
.BI "part " channel |
| 362 |
Has the bot leave the specified channel. Limited to certain users. |
| 363 |
.TP |
| 364 |
.B rehash |
| 365 |
Causes the bot to quit and restart. Generally used after recompilation. |
| 366 |
.TP |
| 367 |
.B sign on time | signon time | signontime |
| 368 |
Just shows when the bot last signed on to the network. Old code, |
| 369 |
to be updated. |
| 370 |
.TP |
| 371 |
.B sleep ib |
| 372 |
Logs in to the bot |
| 373 |
.B ib |
| 374 |
and put it to sleep for ten minutes or so. This allows anyone to put |
| 375 |
.B ib |
| 376 |
to sleep. |
| 377 |
.TP |
| 378 |
.B spells |
| 379 |
Gets and displays the current total number of Source Mage GNU/Linux spells |
| 380 |
as given at http://codex.sourcemage.org/listing.txt - in addition, it lists |
| 381 |
the number given by various values fed to gaze grimoire. |
| 382 |
.TP |
| 383 |
.B spells sorcerer | sorcerer spells |
| 384 |
TEMP DISABLED: Equivalent to 'spells' - but for Sorcerer. |
| 385 |
.TP |
| 386 |
.B spells lunar | lunar spells | modules lunar | lunar modules | modules |
| 387 |
Equivalent to 'spells' - but for giving the count of Lunar Linux modules. |
| 388 |
.TP |
| 389 |
.BI "timein [ list | " target ] |
| 390 |
Attempts to give the local time of |
| 391 |
.IR target. |
| 392 |
.I target can be a location (posix time zone locations, plus additional ones added |
| 393 |
by request) or a Source Mage GNU/Linux user. If |
| 394 |
.B list |
| 395 |
is used instead, it prints a list of the Source Mage GNU/Linux users that it knows |
| 396 |
about. |
| 397 |
.TP |
| 398 |
.B uptime |
| 399 |
Gives the uptime details for the computer the bot is running on. |
| 400 |
.TP |
| 401 |
.BI "users " target |
| 402 |
Gets the current Xplanet marker information from |
| 403 |
.I http://wiki.sourcemage.org |
| 404 |
then attempts to generate a map for |
| 405 |
.IR target . |
| 406 |
.I target |
| 407 |
can be an SMGL user, a continent, a country, a state, or another geographical |
| 408 |
area (a province, a time zone, etc.). |
| 409 |
This map will show cities (depending upon the scale, actually) in grey, |
| 410 |
developers in red, and users in blue. The image will then be made available. |
| 411 |
In addition, certain checks are made, and if the image differs from the |
| 412 |
last one produced for that target, the new image is uploaded to a historical |
| 413 |
archive where people can browse and see how things change over time. |
| 414 |
.TP |
| 415 |
.BI "vote" |
| 416 |
.TP |
| 417 |
.BI "vote " target " [ score | level ] | [ score | level ] " target ] |
| 418 |
.TP |
| 419 |
.BI "vote " target " + | - |
| 420 |
Equivalent to the commands for karma, but you can only vote once, and then |
| 421 |
only up (+) or down (-). |
| 422 |
.TP |
| 423 |
.B "wake ib" |
| 424 |
Has the bot log in to |
| 425 |
.B ib |
| 426 |
and wake it up. This allows anyone to wake ib, even if they can't log in. |
| 427 |
.TP |
| 428 |
.BI "whatis " target |
| 429 |
Searches the whatis database for complete words. |
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
.SS Queries |
| 434 |
Queries allow you to get certain information directly from the bot. |
| 435 |
This is mostly information that doesn't rate being placed in any sort of |
| 436 |
status information, but is useful for debugging. |
| 437 |
.RS 2 |
| 438 |
.TP |
| 439 |
.B query chan |
| 440 |
Tells what channel the query was made on. Yes, it sounds superfluous, but there are situations where it is necessary. For instance, depending on how the bot logs in, the case of the channel could change. (sourcemage, SOURCEMAGE, Sourcemage) -- if things mysteriously stop working, I can look at the current case and compare it to the case of the logfile. |
| 441 |
.TP |
| 442 |
.B query [chans|channels] |
| 443 |
Gives a list of what channels the bot is currently on. |
| 444 |
.TP |
| 445 |
.B query debugging |
| 446 |
Gives information on whether debugging is on or off in various |
| 447 |
procedures. |
| 448 |
.TP |
| 449 |
.B query last known bug |
| 450 |
Gives information regarding the last bug that the bot is aware of. |
| 451 |
.TP |
| 452 |
.B query last known post |
| 453 |
Gives information regarding the last post that the bot is aware of. |
| 454 |
.TP |
| 455 |
.B query server |
| 456 |
Tells what IRC server the bot is connected to. |
| 457 |
.TP |
| 458 |
.B query version |
| 459 |
Gives information about the bot. |
| 460 |
.RE |
| 461 |
.SS Force settings |
| 462 |
Allows you to force certain settings in the bot. Mostly used for debugging. |
| 463 |
.RS 2 |
| 464 |
.TP |
| 465 |
.B force last [known] bug |
| 466 |
This fools the bot into thinking that the last bug it knows about is |
| 467 |
different than what it actually is. This way, it will repeat information |
| 468 |
that it has already given. |
| 469 |
.TP |
| 470 |
.B force update man [page] |
| 471 |
Just an easy way for me to create a new tarball and HTML page for this man page |
| 472 |
when it is updated, while simultaneously letting anyone on the channel know |
| 473 |
that there is a new version |
| 474 |
.RE |
| 475 |
.SH AUTHOR |
| 476 |
Terry 'qnr' Ross <terry at aliboom dot com> |
| 477 |
.SH BUGS |
| 478 |
Tends to be a bit of a wiseacre, but can be calmed down with some botsnacks. |
| 479 |
Any others that you come across, I'd appreciate it if you'd let me know |
| 480 |
using the email address in the AUTHOR section. |