Giter Club home page Giter Club logo

Comments (6)

Khaaz avatar Khaaz commented on July 17, 2024

This most likely means that for this specific server the webhook doesn't work. It can be because of a bug of another sort, but in 90% of case it just mean that your config for this webhook is not correct (invalid token or id). Double check your config and make sure the webhook is correctly set-up.
Make sure the bot has sufficient permissions as well.
In case this issue still happens after you triple checked and you are 100% sure the webhook is correctly setup in your config and in your server, you can come back here for further investigations.

from cross-server-bot.

Endomou avatar Endomou commented on July 17, 2024

alright I'm pretty sure the webhook id is fine because I tried swapping the webhook id and token of the two servers and from my testing what happened was the bot was linking the channel to itself which means it was sending the message to the same channel now when I swapped the webhook id and token back it was back to normal.

Normal webhook

Swapped webhook

also the problem is only that the bot can't copy the embed from the minecraft bot and send it to the other server. but it can send messages normally from one server to other if it's just text or images.

from cross-server-bot.

Endomou avatar Endomou commented on July 17, 2024

I tested it more, it seems embeds from bots are the only messages that can't be copied but images from text and images and links can be sent to the other server.

from cross-server-bot.

Khaaz avatar Khaaz commented on July 17, 2024

I see, that makes sense. An easy fix is to stop all messages from bot, or prevent bots from talking in the channel. I apparently have not added support for embeds. It's basically trying to send an empty message which fails.
I'll add that to the TODO list. Thanks for the report, this is a valid issue 👍🏻

from cross-server-bot.

joeydoesthings avatar joeydoesthings commented on July 17, 2024

Yeah this message is really annoying. if it could at least have a disable function in the config or something I'd really appreciate it.

from cross-server-bot.

Khaaz avatar Khaaz commented on July 17, 2024

The simplest way is to actually disable bots from sending messages in the configs
Otherwise you can remove these lines here: https://github.com/Khaaz/Cross-Server-Bot/blob/master/src/utils.js#L59-L67

from cross-server-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.