mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
refactor: remove discord message processing
This commit is contained in:
parent
6dab2b7ab1
commit
0a84d1c95b
1 changed files with 2 additions and 8 deletions
|
|
@ -152,20 +152,14 @@ namespace Dalamud.Game {
|
|||
if (!valueInfo.Success || !int.TryParse(valueInfo.Value.Replace(",", "").Replace(".", ""), out var itemValue))
|
||||
continue;
|
||||
|
||||
Task.Run(() => this.dalamud.BotManager.ProcessRetainerSale(itemLink.Item.RowId, itemValue, itemLink.IsHQ));
|
||||
//Task.Run(() => this.dalamud.BotManager.ProcessRetainerSale(itemLink.Item.RowId, itemValue, itemLink.IsHQ));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var messageCopy = message;
|
||||
var senderCopy = sender;
|
||||
Task.Run(async () => {
|
||||
try {
|
||||
await this.dalamud.BotManager.ProcessChatMessage(type, messageCopy, senderCopy);
|
||||
} catch (Exception ex) {
|
||||
Log.Error(ex, "Could not process discord bot message.");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Handle all of this with SeString some day
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue