List of IRC bot commands: Difference between revisions

From TripSit wiki
Jump to navigation Jump to search
m (Tob apparently defunct.)
m (Undo revision 5429 by Simon (talk))
Line 82: Line 82:
|}
|}


=== Entertainment ===
===User-Specific===
 
{| class="wikitable"
{| class="wikitable"
! scope="col" style="width: 33%;" | Syntax
! scope="col" style="width: 33%;" | Syntax
Line 88: Line 89:
! scope="col" style="width: 33%;" | Example
! scope="col" style="width: 33%;" | Example
|-  
|-  
| ~ri || Generate a random imgur image and post a link to it in the channel. Only returns images that are greater than 500x500 and omits common screen shot sizes. ||  
| ~set timezone <timezone> || Set a <timezone>. See here for <timezone> names:&nbsp;http://momentjs.com/timezone/ || ~set timezone America/Chicago
|-
|-  
| ~sri || Uses imgur's built in API to return random results. Returns less random images that generally have large numbers of views and are tagged. ||
| ~time || Dispays your current time. || ~time
|-
|-  
| ~lri || The truly random imgur search. ||
| ~time <user> || Displays the <time> of the <user>. || ~time Teknos
|-
| ~ud <word> || Returns the first Urban Dictionary definition for the <word> provided. || ~ud TripSit
|-
|-
| ~xkcd <number> || Returns a link to the xkcd comic <number> specified, or the latest one if <number> is not given. || ~xkcd 1173
| ~set lastfm <username> || Assigns your Last.FM <username> to tripbot for the ~listening command. || ~set lastfm TeknosMusic
|-
|-
| ~rt <move> || Searches rotten tomatoes for the given <movie>. || ~rt Toy Story
| ~listening || Displays the last track the user listened to. || ~listening
|-
|-
| ~listening <user> || Displays the last track the <user> listened to. || ~listening Teknos
| ~listening <user> || Displays the last track the <user> listened to. || ~listening Teknos
|-
|-
| ~set lastfm <username> || Assigns your Last.FM <username> to tripbot for the above command. || ~set lastfm TeknosMusic
| ~words || Displays number of words used by the user since registering || ~words
|-
| ~say <target> <message> || Send the <target>, which may be a channel or a user, a <message>. || ~say Teknos Hello!
|-
|-
| ~flashy <colour> <message> || Gives a link to a page that shows the <message> flashing in <colour>. || ~flashy blue hello
| ~words <user> || Displays number of words used by <user> since registering. Not all users are tracked. || ~words Teknos
|-
|-
|}
|}
 
=== Utility ===
=== Utility ===
{| class="wikitable"
{| class="wikitable"
Line 115: Line 112:
! scope="col" style="width: 33%;" | Description
! scope="col" style="width: 33%;" | Description
! scope="col" style="width: 33%;" | Example
! scope="col" style="width: 33%;" | Example
|-
| ~set timezone <timezone> || Set a <timezone>. See here for <timezone> names: http://momentjs.com/timezone/ || ~set timezone America/Chicago
|-
| ~time || Dispays your current <time>. ||
|-
| ~time <user> || Displays the <time> of the <user>. || ~time Teknos
|-  
|-  
| ~usage <command> || Show usage information for a given <command>. || ~usage time
| ~usage <command> || Show usage information for a given <command>. || ~usage time
Line 144: Line 135:
|}
|}


== Tob Commands (defunct) ==
=== Entertainment ===
{| class="wikitable"
{| class="wikitable"
! scope="col" style="width: 33%;" | Syntax
! scope="col" style="width: 33%;" | Syntax
Line 150: Line 141:
! scope="col" style="width: 33%;" | Example
! scope="col" style="width: 33%;" | Example
|-  
|-  
| Most commands below can be done in PM as well. Contact CustaiCo for any problems with tob. || ||  
| ~ri || Generate a random imgur image and post a link to it in the channel. Only returns images that are greater than 500x500 and omits common screen shot sizes. ||  
|-
|-
| !seen <nick> || Displays the last time a <nick> was seen. || !seen Teknos
| ~sri || Uses imgur's built in API to return random results. Returns less random images that generally have large numbers of views and are tagged. ||  
|-
|-
| !lastspoke <nick> || Displays the last time a <nick> spoke. || !lastspoke Teknos
| ~lri || The truly random imgur search. ||  
|-
|-
| !bing <query> || Searches Bing with the given <query> and gives top 3 results. || !bing TripSit
| ~ud <word> || Returns the first Urban Dictionary definition for the <word> provided. || ~ud TripSit
|-
|-
| !news <query> || Gets top headline news for the <query> from Bing. || !news Elections
| ~xkcd <number> || Returns a link to the xkcd comic <number> specified, or the latest one if <number> is not given. || ~xkcd 1173
|-
|-
| !business !entertain !health !politics !sports !usnews !worldnews !tech || Domain specific news. ||  
| ~rt <move> || Searches rotten tomatoes for the given <movie>. || ~rt Toy Story
|-
|-
| !image <query> || Finds a random image on the top 50 results for the given <query> returned by Bing. Adult filter is deactivated. || !image Cat pictures
| ~say <target> <message> || Send the <target>, which may be a channel or a user, a <message>. || ~say Teknos Hello!
|-
|-
| !spell <query> || Attempts to find a spelling correction for the <query>. || !spell benzodizapine
| ~flashy <colour> <message> || Gives a link to a page that shows the <message> flashing in <colour>. || ~flashy blue hello
|-
| !hmacsha256 <key> <message> || Calculates a hmac on the <message> using the bytes of the <key> phrase as the <key>. || !hmacsha256 password Hello!
|-
|-
|}
|}

Revision as of 18:12, 26 July 2017

TripBot

Common Commands

Syntax Description Example
~report <#channel> <user> <reason> Report a <user> in a <#channel> for a <reason>. This command can either be run publicly in a channel or anonymously in a PM to tripbot. /msg tripbot ~report #drugs JoeTheTroll Asking where to get stuff.
~drug <drug> Displays the properties of the <drug>, for example: summary, dose, duration, effects and more. ~drug LSD
~drug <drug> <property> Displays <property> information ~drug LSD dose
~factsheet <drug> Links to the factsheet of the <drug>. ~factsheet LSD
~bconvert <dosage> <benzo1> <benzo2> Converts <dosage> of <benzo1> to <benzo2>. ~bconvert 2mg xanax klonopin

TripSitting

Syntax Description Example
~tripsit <user> Ask for help in #tripsit on behalf of the <user> in need help. Messages all tripsitters and posts a message in #drugs and #tripsitvip. <user> is optional. ~tripsit TripSitMe_12345
~gettripsitentries After issuing this command, you will be PMed by tripbot when a new user comes into #tripsit and may need help.
~notripsitentries Turns off the above alert of new users in #tripsit.
~clearmissing If tripbot sends a private message saying you have missed notifies, this is a bug, and you can safely use this command to remove them.
~recovery position Displays a link to an image on how to get into the recovery position. http://imgur.com/nTEm0QE.png The recovery position is designed to prevent suffocation through obstruction of the airway

Dosage Tracker

Syntax Description Example
~idose <dose> <drug> <method> Tripbot will remember the dose and the timing for you. Make sure to set a timezone before using this, else the absolute time might be inaccurate. Relative time will still be accurate. Running this multiple times will overwrite the previous stored dose, since ~set upidose true is currently broken.. ~idose 100mg MDMA
~lastdose Tripbot responds with your latest dose, including drug, dose and timing. <@tripbot>: You last dosed 100mg of MDMA 3 hours ago (22:00 on 13/05/2017).
~set upidose <true/false> Currently out of order
When ~idose is used, tripbot will upload an encrypted version of your dose history to you
We hope to get this up and running as soon as possible

Quotes

Syntax Description Example
~qadd <category> = <quote> Add a new <quote> to the <category> in the database, or creates a new <category> if it does not already exist. ~qadd Jokes = A man walks into a bar and says "ouch".
The following modifiers can be used inside the quote text: ~~category~~ - Includes text from a random quote in given category. ~qadd Jokes = A man walks into a ~~noun~~ and says "ouch".
~~-nick-~~ - Includes the nick of the user displaying the quote. ~qadd Jokes = ~~-nick-~~ walks into a bar and says "ouch".
~~-nicks-~~ - Includes the nick of a random user in the current channel. ~qadd Jokes = ~~.nicks.~~ walks into a bar and says "ouch".
~<category> Display a random quote from a given <category>. ~Jokes
~qsearch <category> = <text> Search a <category> for quotes including the given <text>. ~qsearch Jokes = walks
~link <category> Use this command to get a URL to the indicated quote <category>. ~link Jokes
~qcount <category> Show the number of quotes stored in the given <category>, or if called without a category it will show the total number of quotes in the database. ~qcount Jokes
~rmlast <category> Remove the last quote added to a given <category>. ~rmlast Jokes
~rm <category> = <quote> Remove a given <quote> from the given <category>. ~rm Jokes = A man walks into a bar and says "ouch".
~rq Show a random quote from the database.
~qstats Displays quotes with the largest number of entries.

User-Specific

Syntax Description Example
~set timezone <timezone> Set a <timezone>. See here for <timezone> names: http://momentjs.com/timezone/ ~set timezone America/Chicago
~time Dispays your current time. ~time
~time <user> Displays the ~time Teknos
~set lastfm <username> Assigns your Last.FM <username> to tripbot for the ~listening command. ~set lastfm TeknosMusic
~listening Displays the last track the user listened to. ~listening
~listening <user> Displays the last track the <user> listened to. ~listening Teknos
~words Displays number of words used by the user since registering ~words
~words <user> Displays number of words used by <user> since registering. Not all users are tracked. ~words Teknos

Utility

Syntax Description Example
~usage <command> Show usage information for a given <command>. ~usage time
<module> Link module help for a <module> given either the module name or the name of a <command> belonging to a <module>. help qadd
~ignore <module> Ignore a given <module>. If the user does not specify a <module>, or provides an invalid one a list of modules which are available to ignore will be given. <Modules> you can ignore are: spotify, github, js, link, quotes, report, spelling, poll, regex, youare, kick. ~ignore spelling
~unignore <module> Unignore a previously ignored< module>. If you does not specify a <module>, or provide an invalid choice, a list of modules which are currently ignored will be given. ~unignore spelling
~wr <word> Sends a search <word> to Wolfram Alpha and returns the result. ~wr 20f to c
~js <things and stuff> For regular users, there is the ~js command, which is completely sandboxed, but can still be used for calculation and the like.
Spelling Corrections Allows you to run regex replaces on both your own and others messages. One may run a regex on their own last message like so: > user: I like turtles
> user: s/turtles/pizza/
One may run a regex on another user's last message simple by highlighting the nick before the pattern: > batman: I like TURTLES
> user: batman: s/turtles/pizza/i

Entertainment

Syntax Description Example
~ri Generate a random imgur image and post a link to it in the channel. Only returns images that are greater than 500x500 and omits common screen shot sizes.
~sri Uses imgur's built in API to return random results. Returns less random images that generally have large numbers of views and are tagged.
~lri The truly random imgur search.
~ud <word> Returns the first Urban Dictionary definition for the <word> provided. ~ud TripSit
~xkcd <number> Returns a link to the xkcd comic <number> specified, or the latest one if <number> is not given. ~xkcd 1173
~rt <move> Searches rotten tomatoes for the given <movie>. ~rt Toy Story
~say <target> <message> Send the <target>, which may be a channel or a user, a <message>. ~say Teknos Hello!
~flashy <colour> <message> Gives a link to a page that shows the <message> flashing in <colour>. ~flashy blue hello