#556 EQ2Emu Discord Bridge.

Öppen
öppnade 9 månader sedan av devn00b · 0 kommentarer

Since I'll be merging in the code for this creating an issue to track bugs and to-dos for this.

** NOTE ** Currently linux support only.

Changes req:

Added rules that require SQL updates. These can be found in DB/updates/DiscordBridgeOptions-2-5-24.sql or below.

Must create a discord bot in the developer portal.

Must create a webhook on the channel desired.

Must get the channel ID for the channel you wish to have the bot monitor.

SQL Updates Required: INSERT INTO ruleset_details (ruleset_id, rule_category, rule_type, rule_value, description) VALUES (1, 'R_Discord', 'DiscordEnabled', '1', 'Enable (1) or Disable(0) the Discord Bridge System.');

INSERT INTO ruleset_details (ruleset_id, rule_category, rule_type, rule_value, description) VALUES (1, 'R_Discord', 'DiscordWebhookURL', 'https://example.com', 'Webhook url for EQ2 -> Discord coms.');

INSERT INTO ruleset_details (ruleset_id, rule_category, rule_type, rule_value, description) VALUES (1, 'R_Discord', 'DiscordBotToken', '0', 'This is the token for the bot, given in the discord developer site.');

INSERT INTO ruleset_details (ruleset_id, rule_category, rule_type, rule_value, description) VALUES (1, 'R_Discord', 'DiscordListenChan', '0', 'Channe ID you want to listen to chat from. this is for Discord -> EQ2 coms.');

For Developers:

All this is behind an #ifdef DISCORD so you must add -DDISCORD and -lDPP in the correct locations.

TODO:

Enable Windows support.

Removal of ifdefs that are unneeded after Windows support is added.

Since I'll be merging in the code for this creating an issue to track bugs and to-dos for this. ** NOTE ** Currently linux support only. Changes req: Added rules that require SQL updates. These can be found in DB/updates/DiscordBridgeOptions-2-5-24.sql or below. Must create a discord bot in the developer portal. Must create a webhook on the channel desired. Must get the channel ID for the channel you wish to have the bot monitor. SQL Updates Required: INSERT INTO `ruleset_details` (`ruleset_id`, `rule_category`, `rule_type`, `rule_value`, `description`) VALUES (1, 'R_Discord', 'DiscordEnabled', '1', 'Enable (1) or Disable(0) the Discord Bridge System.'); INSERT INTO `ruleset_details` (`ruleset_id`, `rule_category`, `rule_type`, `rule_value`, `description`) VALUES (1, 'R_Discord', 'DiscordWebhookURL', 'https://example.com', 'Webhook url for EQ2 -> Discord coms.'); INSERT INTO `ruleset_details` (`ruleset_id`, `rule_category`, `rule_type`, `rule_value`, `description`) VALUES (1, 'R_Discord', 'DiscordBotToken', '0', 'This is the token for the bot, given in the discord developer site.'); INSERT INTO `ruleset_details` (`ruleset_id`, `rule_category`, `rule_type`, `rule_value`, `description`) VALUES (1, 'R_Discord', 'DiscordListenChan', '0', 'Channe ID you want to listen to chat from. this is for Discord -> EQ2 coms.'); For Developers: All this is behind an #ifdef DISCORD so you must add -DDISCORD and -lDPP in the correct locations. TODO: Enable Windows support. Removal of ifdefs that are unneeded after Windows support is added.
Logga in för att delta i denna konversation.
Laddar...
Avbryt
Spara
Det finns inget innehåll än.