Skip to content

Add memo command.#28

Open
8573 wants to merge 7 commits into
grickit:masterfrom
8573:8573/feature/memoranda/1
Open

Add memo command.#28
8573 wants to merge 7 commits into
grickit:masterfrom
8573:8573/feature/memoranda/1

Conversation

@8573
Copy link
Copy Markdown
Contributor

@8573 8573 commented Jan 28, 2014

Implement a memo command, to record memoranda which are to be relayed
to their designated addressees, and enable it in (what I believe to be)
the “example” and “jane” configurations.

This memo command is to be used thus:

<Gambot’s nick>: memo <addressee’s nick> <memorandum text>

E.g., the following command…

janebot: memo Gambit Lorem ipsum dolor sit amet.

…would instruct janebot to tell Gambit “Lorem ipsum dolor sit amet.”
when he’s next around (i.e., the next time he speaks in the channel in
which the memorandum was recorded).

The implementation of this memo command is in the following Perl
script:

parsers/plugin_parser/plugins/memo.pm

(1) Stop mangling the nice standard ISO 8601 datestamps into… some
perverted format that as far as I know isn’t even really used anywhere.

(2) Stop capturing sequential elements of the input then outputting them
idem; merge these needlessly separate captures.

(3) Stop capturing elements of the input that are not subsequently used;
delete these unnecessary captures.

(4) Merge the needlessly separate $data_date variables into the
$data_time variables.

(5) Include timezones in the timestamps.
In Twitter reports, prevent ‘#’-prefixed US-ASCII-alphanumeric sequences
starting with a US-ASCII digit from being misinterpreted as hashtags.
…ax/forbid-leading-digit' into 8573/twitter-reporting/hashtag/parsing/correctness/syntax/permit-underscores
In Twitter reports, properly recognize and highlight hashtags that contain
underscores.

Previously, it appears that hashtags containing underscores would have
been recognized and highlighted only up until the first underscore,
i.e., the first underscore would have been misinterpreted as terminating
the hashtag, and not included in the hashtag.
Merge branches…
 - `8573/forum-reporting/timestamps/1`,
 - `8573/quotes/spelling-fixes/1`, and
 - `8573/twitter-reporting/hashtag/parsing/correctness/syntax/permit-underscores`
…into branch `8573/feature/memoranda/1`.
Implement a `memo` command, to record memoranda which are to be relayed
to their designated addressees, and enable it in (what I believe to be)
the “example” and “jane” configurations.

This `memo` command is to be used thus:

    <Gambot’s nick>: memo <addressee’s nick> <memorandum text>

E.g., the following command…

    janebot: memo Gambit Lorem ipsum dolor sit amet.

…would instruct janebot to tell Gambit “Lorem ipsum dolor sit amet.”
when he’s next around (i.e., the next time he speaks in the channel in
which the memorandum was recorded).

The implementation of this `memo` command is in the following Perl
script:

    parsers/plugin_parser/plugins/memo.pm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant