Both sides previous revisionPrevious revisionNext revision | Previous revision |
community:using-pinesol_green [2015/08/17 10:54] – Added launchpad integration example stompro | community:using-pinesol_green [2022/02/10 13:34] (current) – external edit 127.0.0.1 |
---|
====== Using pinesol_green in the Evergreen IRC channel DRAFT====== | ====== Using pinesol in the Evergreen IRC channel====== |
| |
pinesol_green green is considered a "concierge bot," or program that listens for commands sent to it through IRC. pinesol_green then takes specific actions for the commands it receives. | pinesol green is considered a "concierge bot," or program that listens for commands sent to it through IRC. pinesol then takes specific actions for the commands it receives. |
| |
| |
===== General Usage Commands ===== | ===== General Usage Commands ===== |
| |
===Getting a list of available pinesol_green commands=== | //When exploring these commands, we recommend chatting with pinesol privately. This prevents the main channel from getting all of your back and forth with the bot.// |
| |
| ===Getting a list of available pinesol commands=== |
| |
//Example question directed at kmlussier// | //Example question directed at kmlussier// |
</code> | </code> |
| |
//Here is what pinesol_green will reply with// | //Here is what pinesol will reply with// |
<code> | <code> |
your_irc_nickname: Admin, Anagram, Assorted2, Blame, Bugtracker, Channel, ChannelLogger, Config, Dunno, Encyclopedia, Games, Git, Herald, Insult, Karma, Later, LoveHate, MARC, Math, MeetBot, Misc, Note, Owner, Praise, Quote, RSS, Reply, Seen, Status, Time, Todo, Twitter, User, and Weather | your_irc_nickname: Admin, Anagram, Assorted2, Blame, Bugtracker, Channel, ChannelLogger, Config, Dunno, Encyclopedia, Games, Git, Herald, Insult, Karma, Later, LoveHate, MARC, Math, MeetBot, Misc, Note, Owner, Praise, Quote, RSS, Reply, Seen, Status, Time, Todo, Twitter, User, and Weather |
</code> | </code> |
| |
//Here is what pinesol_green will reply with// | //Here is what pinesol will reply with// |
<code> | <code> |
your_irc_nickname: (marc look up field or field/subfield combo in MARC docs) -- eg. @marc 245 or @marc 245 a | your_irc_nickname: (marc look up field or field/subfield combo in MARC docs) -- eg. @marc 245 or @marc 245 a |
</code> | </code> |
| |
//Here is what pinesol_green will reply with// | //Here is what pinesol will reply with// |
<code> | <code> |
your_irc_nickname: The information needed to locate and access an electronic resource. The field may be used in a bibliographic record for a resource when that resource or a subset of it is available electronically. In addition, it may be used to locate and access an electronic version of a non-electronic resource described in the bibliographic record or a related electronic resource. (Repeatable) (1 more message) | your_irc_nickname: The information needed to locate and access an electronic resource. The field may be used in a bibliographic record for a resource when that resource or a subset of it is available electronically. In addition, it may be used to locate and access an electronic version of a non-electronic resource described in the bibliographic record or a related electronic resource. (Repeatable) (1 more message) |
</code> | </code> |
| |
//Use the @more command to get additional information from pinesol_green of the previous message ends with "(1 more message)"// | //Use the @more command to get additional information from pinesol of the previous message ends with "(1 more message)"// |
<code> | <code> |
@more | @more |
</code> | </code> |
| |
//Here is what pinesol_green will reply with// | //Here is what pinesol will reply with// |
<code> | <code> |
your_irc_nickname: [a,b,c,d,f,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,2,3,6,8] | your_irc_nickname: [a,b,c,d,f,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,2,3,6,8] |
</code> | </code> |
| |
//pinesol_green will reply with this// | //pinesol will reply with this// |
<code> | <code> |
<your username>: The operation succeeded. | <your username>: The operation succeeded. |
</code> | </code> |
| |
//Here is what pinesol_green will reply with// | //Here is what pinesol will reply with// |
<code> | <code> |
The current temperature in Roanoke, Texas is 61.2°F (9:07 AM CDT on March 31, 2014). Conditions: Mostly Cloudy. Humidity: 81%. Dew Point: 55.4°F. Pressure: 29.90 in 1012 hPa (Steady). | The current temperature in Roanoke, Texas is 61.2°F (9:07 AM CDT on March 31, 2014). Conditions: Mostly Cloudy. Humidity: 81%. Dew Point: 55.4°F. Pressure: 29.90 in 1012 hPa (Steady). |
</code> | </code> |
| |
//pinesol_green will respond with something like this// | //pinesol will respond with something like this// |
<code> | <code> |
Launchpad bug 1484655 in Evergreen 2.8 "ftp://ftp.mozilla.org has moved to http://archive.mozilla.org" (affected: 1, heat: 6) [High,Fix committed] https://launchpad.net/bugs/1484655 | Launchpad bug 1484655 in Evergreen 2.8 "ftp://ftp.mozilla.org has moved to http://archive.mozilla.org" (affected: 1, heat: 6) [High,Fix committed] https://launchpad.net/bugs/1484655 |
| </code> |
| |
| ===Git Repository Integration=== |
| //If you mention a git commit hash from the evergreen, opensrf, evergreen_website or sipserver repositories then pinesol will give you more information about that commit. You need to include at least 6 characters of the hash.// |
| |
| <code> |
| I think the problem is in commit 8d14cfb562d8e72e25a7d90cbb5370bf904ccf1c |
| No, it is actually in commit 8d14cf |
| </code> |
| |
| //pinesol will respond with something like:// |
| <code> |
| <pinesol> [evergreen|Jason Stephenson] LP 1484655: ftp://ftp.mozilla.org moved to http://archive.mozilla.org - <http://git.evergreen-ils.org/?p=Evergreen.git;a=commit;h=8d14cfb> |
</code> | </code> |
===== Advanced Usage Commands ===== | ===== Advanced Usage Commands ===== |
</code> | </code> |
| |
//Here is what pinesol_green can reply with.// | //Here is what pinesol can reply with.// |
<code> | <code> |
pinesol_green fills a pint glass with Ruedrich's Red Seal Ale, and sends it sliding down the bar to <username> (http://beeradvocate.com/beer/profile/112/410/) | pinesol fills a pint glass with Ruedrich's Red Seal Ale, and sends it sliding down the bar to <username> (http://beeradvocate.com/beer/profile/112/410/) |
</code> | </code> |
| |
</code> | </code> |
| |
//Here is what pinesol_green can reply with for @tea.// | //Here is what pinesol can reply with for @tea.// |
<code> | <code> |
pinesol_green brews and pours a pot of Liu An Gua Pian Green Tea, and sends it sliding down the bar to <username> (http://ratetea.com/tea/teavivre/liu-an-gua-pian-green-tea/6492/) | pinesol brews and pours a pot of Liu An Gua Pian Green Tea, and sends it sliding down the bar to <username> (http://ratetea.com/tea/teavivre/liu-an-gua-pian-green-tea/6492/) |
</code> | </code> |
//And @coffee// | //And @coffee// |
<code> | <code> |
pinesol_green brews and pours a cup of India AA Elkhill Estate, and sends it sliding down the bar to <username> | pinesol brews and pours a cup of India AA Elkhill Estate, and sends it sliding down the bar to <username> |
</code> | </code> |
| |
===Create a D&D/Gamma World/Librarian/Developer Character Sheet=== | ===Create a D&D/Gamma World/Librarian/Developer Character Sheet=== |
| |
//pinesol_green can randomly generate character stats in a variety of formats.// | //pinesol can randomly generate character stats in a variety of formats.// |
<code> | <code> |
@dnd | @dnd |
</code> | </code> |
| |
//pinesol_green will respond with the following for @dnd:// | //pinesol will respond with the following for @dnd:// |
<code> | <code> |
strength:13 dexterity:10 constitution:11 intelligence:16 wisdom:18 charisma:16 | strength:13 dexterity:10 constitution:11 intelligence:16 wisdom:18 charisma:16 |
</code> | </code> |
| |
//pinesol_green replied to gsams with:// | //pinesol replied to gsams with:// |
<code> | <code> |
Hmm... gsams... Let me see now... GRYFFINDOR! | Hmm... gsams... Let me see now... GRYFFINDOR! |
</code> | </code> |
| |
| ===Quote Database=== |
| |
| ==Seeing the quote commands== |
| |
| //@list quote will show a list of sub commands for the quote plug-in// |
| |
| <code> |
| @list quote |
| </code> |
| |
| //pinesol replies// |
| <code> |
| add, change, get, random, remove, replace, search, and stats |
| </code> |
| |
| ==Adding a quote to the database== |
| |
| <code> |
| @quote add <Bmagic> It's as if millions of bugs all cried out at once, and were silenced. |
| </code> |
| |
| ==Search the database== |
| |
| <code> |
| @quote search Bmagic |
| </code> |
| |
| //pinesol replies// |
| <code> |
| 4 found: #149: "< Bmagic> my favorite viruses are the ones...", #172: "< Bmagic> I like to keep my systems at a power...", #179: "<Bmagic> It's amazing how often 30 days comes...", and #213: "<Bmagic> It's as if millions of bugs all cried..." |
| </code> |
| |
| ==Retrieve a specific quote by ID== |
| |
| <code> |
| @quote get 149 |
| </code> |
| |
| //pinesol replies// |
| <code> |
| Quote #149: "< Bmagic> my favorite viruses are the ones claiming to be the cure" (added by csharp at 10:32 AM, March 22, 2016) |
| </code> |
| |
| |
| ===Using MeetBot for IRC Meetings=== |
| The Meetbot is documented at [[community:using-meetbot|Using MeetBot for IRC Meetings]] |