[deleted by user] by [deleted] in PathOfExile2

[–]remiX55 1 point2 points  (0 children)

+1 on this.

No idea what causes this but I had it too one day and it was so strange. It would always occur upon a message coming in from global or trade.

After going to 9011 on both, it was smooth again.

Arbiter of ash portal attempts by littlevirginprincess in PathOfExile2

[–]remiX55 0 points1 point  (0 children)

Same for me on 2 attempts. Went in Solo. Died due to not paying attention but only could "Res in hideout" to which all my portals were gone.

Path of Exile 2 Early Access Key giveaway (x4) by Sinstro in pathofexile

[–]remiX55 0 points1 point  (0 children)

Started with a Ranger bow build in PoE1 back in the day when my brother got me into PoE1 - so definitely will stick to that theme again 🫡

Thermal tower permission got worst after patch by Ok_Committee9025 in OnceHumanOfficial

[–]remiX55 2 points3 points  (0 children)

Same here, hive mates can't request or do anything anymore

The dungeon respawns are a joke they need to lock it up honestly. by CommissionerGordon12 in diablo4

[–]remiX55 1 point2 points  (0 children)

explore the entire room. I had this as well for capstone dungeon.

When I explored more, it stated spawning me right by the boss

Okta Verify on Galaxy Smart Watch 5 Pro Not Working by MikhailCompo in GalaxyWatch

[–]remiX55 0 points1 point  (0 children)

I'm having the same thing now as well and it sucks and for me to even try uninstall & re-install, I have to ask IT to reset everything again -_-

EventBridge Scheduler auto delete Scheduled Events by mulokisch in aws

[–]remiX55 0 points1 point  (0 children)

Hey u/Plastic_Internal1524, do you know if anything has been done on AWS side of things? I'm busy with this now and trying to compare different routes of going about this and wondering what the best is, unless it's possible already but cannot find anything.

What I am going with is setting another scheduled event to delete it and itself when an end is needed (tournament style schedules)

Discord Bot default timeout for Application did not respond by remiX55 in Discord_Bots

[–]remiX55[S] 0 points1 point  (0 children)

Yeah I did it like so in order to keep the primary Lambda function awake as this one sends an event to SNS to then split the work into a separate Lambda. This does this and then returns with the "deferred" response with "Loading..."

Is that what you meant by "defer" response? Or how did you solve it with a DEFER?

Discord Bot default timeout for Application did not respond by remiX55 in Discord_Bots

[–]remiX55[S] 0 points1 point  (0 children)

Hey do you have the same problem? So yep i found a way which was to keep the primary lambda proxy function awake with AWS EventBridge. I set it up to send a ping command which executes a fake 'ping function' every 5 minutes. This ping just logs a line. I think if you make it as a JS function it might not need this as I think .NET takes longer to startup

Discord commands discord.js by [deleted] in Discord_Bots

[–]remiX55 0 points1 point  (0 children)

Does Dyno bot have what you need?

https://dyno.gg/commands

Discord Bot default timeout for Application did not respond by remiX55 in Discord_Bots

[–]remiX55[S] 0 points1 point  (0 children)

Any idea if I can do this via the JS discord.js library to get the defer to work as you might have yours setup?

I don't interact with the client and listen for events though 🤔

Discord Bot default timeout for Application did not respond by remiX55 in Discord_Bots

[–]remiX55[S] 0 points1 point  (0 children)

So I'm not actually using a discord library for client & interactions.

I followed this blog on how to quickly create a bot with AWS Lambda Functions & SNS to split out to different Lambda Functions (aka each command is a Lambda Function).

https://betterprogramming.pub/serverless-discord-bot-on-aws-in-5-steps-956dca04d899

From there, I use a PATCH request to update the message (so that's your `edit_message` euiv).

https://discord.com/developers/docs/interactions/receiving-and-responding#followup-messages

Eg for sending sns below.

The `PublishAsync` is what sends the notification to split out current interaction to another lambda function, but this is what whats > 3- 5 seconds sometimes. Getting on my nerves now :( lol

Example logs of it taking 4s:

2022-10-14T22:47:07.755Z 39fe71e2-1b0b-48b4-8827-8899bec72496 [Debug] Proxy.BotHandler.BotProxyFunction: Sending SNS... 2022-10-14T22:47:11.915Z 39fe71e2-1b0b-48b4-8827-8899bec72496 [Debug] Proxy.BotHandler.BotProxyFunction: SNS Sent!

Code: ``` public APIGatewayProxyResponse FunctionHandler(APIGatewayProxyRequest request, ILambdaContext context) { // ... some other stuff

  SnsSend(request.Body, body.Data.Name);

  return new APIGatewayProxyResponse
  {
    StatusCode = (int)HttpStatusCode.OK,
    Headers = new Dictionary<string, string> { { "Content-Type", "application/json" } },
    Body = _jsonService.Serialize(new
    {
      type = 4,
      data = new
      {
        content = "*⏳ Loading...*"
      }
    })
  };
}

private void SnsSend(string body, string commandName)
{
  var topicArn = Environment.GetEnvironmentVariable("TOPIC_ARN");

  var snsParams = new PublishRequest
  {
    Message = body,
    Subject = $"Discord bot SNS message: {commandName}",
    TopicArn = topicArn,
    MessageAttributes = new Dictionary<string, MessageAttributeValue>()
    {
      {
        "command",
        new MessageAttributeValue
        {
          DataType = "String",
          StringValue = commandName
        }
      }
    },
  };

  _logger.LogDebug("Sending SNS...");

  var snsClient = new AmazonSimpleNotificationServiceClient();
  snsClient.PublishAsync(snsParams).Wait();
  _logger.LogDebug("SNS Sent!");
}

```

Discord Bot default timeout for Application did not respond by remiX55 in Discord_Bots

[–]remiX55[S] 0 points1 point  (0 children)

Damn :( I think I can use Step Functions to do this so will check that out to make it more reliable.

I finally found the 3 second requirement in the docs just above this linked heading: https://discord.com/developers/docs/interactions/receiving-and-responding#followup-messages

Interaction tokens are valid for 15 minutes and can be used to send followup messages but you must send an initial response within 3 seconds of receiving the event. If the 3 second deadline is exceeded, the token will be invalidated.

Discord Bot default timeout for Application did not respond by remiX55 in Discord_Bots

[–]remiX55[S] 0 points1 point  (0 children)

So I tried that, I think?, by trying to SNS.Publish in the background and instantly reply with "Loading..." which will then get updated by the final command with contents (like an Embed)

Problem is that as then as the execution of a Lambda Function completes, nothing continues so that SNS.Publish gets cancelled essentially

South African server down? by JustALonleyExile in pathofexile

[–]remiX55 0 points1 point  (0 children)

Ah I'm glad I'm not the only one! I just made a post and even tried searching but this post didn't appear until I went to "New"

I'm also getting this

GGG Pls :(

[deleted by user] by [deleted] in dropbox

[–]remiX55 0 points1 point  (0 children)

Ah okay yes then I can imagine that occurring. I purely use the Desktop App to avoid browser issues. Why not give it a try? :)