Skip to content
This repository has been archived by the owner on Sep 21, 2019. It is now read-only.

Add parameters to scripts #4

Open
benjie opened this issue Apr 4, 2016 · 0 comments
Open

Add parameters to scripts #4

benjie opened this issue Apr 4, 2016 · 0 comments

Comments

@benjie
Copy link
Member

benjie commented Apr 4, 2016

Commands are of the form ?command payload, where payload can be a long message containing arbitrary characters. This then finds the command that matches command and sends it 4 arguments: the user, channel, context and payload. For channels the context is the channel, for DMs the context is the user (and the channel is null).

channel and group messages

  1. nick
  2. channel name
  3. channel name
  4. payload

im messages (DMs)

  1. nick
  2. 'null'
  3. nick
  4. payload

A good way to test it's working is to call the ?debug script

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant