Menu

#1 New Quotes Plugin

foobot
open
Hendrik
5
2004-02-29
2004-02-08
No

Hi :)

Here's a simple Quotes plugin I put together. It just uses a text file to
store quotes.

Quotes can be added:

!addq Quote goes here

and read

!quote

(but not yet deleted).

This works both in channel and in private message.

Cheers,
Daniel.

Discussion

  • Daniel Marks

    Daniel Marks - 2004-02-08

    Quotes Plugin

     
  • Hendrik

    Hendrik - 2004-02-28
    • assigned_to: nobody --> mooze
    • status: open --> open-later
     
  • Daniel Marks

    Daniel Marks - 2004-02-29

    Quotes Plugin (amended)

     
  • Daniel Marks

    Daniel Marks - 2004-02-29

    Logged In: YES
    user_id=971036

    I've fixed it up slightly.

    Changes:
    Added checks on return values for system calls
    Moved the block that checks whether a request was made in PM so that this
    block is now only executed when !quote or !addquote is called, rather than
    for every message received.
    Amended the $irc->enqueue line to remove the sprintf and make it more
    readable (was the sprintf necessary?)

     
  • Hendrik

    Hendrik - 2004-02-29
    • labels: 567774 -->
    • milestone: 336718 -->
    • assigned_to: mooze --> nobody
     
  • Hendrik

    Hendrik - 2004-02-29
    • labels: --> Plugin Development
    • milestone: --> foobot
    • assigned_to: nobody --> mooze
    • status: open-later --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.