This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
discordchat [2019/04/07 05:00] – mochi | discordchat [2019/04/22 09:13] (current) – [Custom Commands] mochi | ||
---|---|---|---|
Line 122: | Line 122: | ||
When an external addon registers itself with // | When an external addon registers itself with // | ||
+ | |||
+ | ====== Advanced Channel Configuration ====== | ||
+ | You can configure the addon to send messages in different chat channels in FF14 (such as Say, FC, LS1, LS4) to go to a different channel in Discord. | ||
+ | |||
+ | You can create multiple channels in your Discord server, //Copy ID// in Discord, and paste them in the Channels configuration window. | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | You can also specify a hex color to distinguish between messages. For example, //ff0000// would give a red color, and //00ff00// would give a green color. You can use [[https:// | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | If you enable // | ||
+ | |||
+ | |||
+ | ====== Mention Keywords ====== | ||
+ | You can specify specific keywords, that when said in chat, will notify you in discord with an //@// mention. These can be found under the //Bot Token/ | ||
+ | |||
+ | |||
+ | {{:: | ||
+ | |||
+ | |||
+ | ====== Custom Commands ====== | ||
+ | If you want to program your own commands and responses, you can program simple ones with custom commands. (You can more easily make complex ones using the public API in the next section.) | ||
+ | |||
+ | Under //Custom Commands//, define a prefix, and a response. A return value will be send back to the channel the command was sent in. There are two additional commands you can use, //message// and // | ||
+ | |||
+ | Here are two examples: | ||
+ | |||
+ | **Returns your current HP** | ||
+ | |||
+ | Prefix: hp | ||
+ | |||
+ | Code: <code lua> | ||
+ | |||
+ | **Returns your current map and position** | ||
+ | |||
+ | Prefix: pos | ||
+ | |||
+ | Code: <code lua> | ||
+ | |||
+ | {{:: | ||
====== Public API for Other Addons ====== | ====== Public API for Other Addons ====== |