Giter Club home page Giter Club logo

Comments (6)

jaredmarcus avatar jaredmarcus commented on July 2, 2024 1

Wow, this is actually legit! The direct channel does work! You should note it somewhere in the documentation! Thanks alot man!

from discord-echobot.

MitchTalmadge avatar MitchTalmadge commented on July 2, 2024

This is possible :) In the config just add another redirect section, like this:

{
  "token": "mfa.yourtoken-shouldgoherejklsdfhsoiehfseihfseifbisoehfoisefise",
  "redirects": [
    {
      "sources": [
        "A",
      ],
      "destinations": [
        "C"
      ],
      "options": {
        "title": "New Copied Message",
        "richEmbed": true,
        "richEmbedColor": 30975,
        "includeSource": true,
        "removeEveryone": true,
        "removeHere": true,
        "copyRichEmbed": true,
        "copyAttachments": true,
        "minLength": 0,
        "allowList": []
      }
    },
    {
      "sources": [
        "B",
      ],
      "destinations": [
        "D"
      ],
      "options": {
        "title": "New Copied Message",
        "richEmbed": true,
        "richEmbedColor": 30975,
        "includeSource": true,
        "removeEveryone": true,
        "removeHere": true,
        "copyRichEmbed": true,
        "copyAttachments": true,
        "minLength": 0,
        "allowList": []
      }
    }
  ]
}

The options have to be specified twice but the benefit is that you can make these two redirect rules work differently if you want.

Lemme know if it works!

from discord-echobot.

jaredmarcus avatar jaredmarcus commented on July 2, 2024

it's coming back with an error. This is my code with the token redacted

{
  "token": "token",
  "redirects": [
    {
      "sources": [
        "789639539433013268",
      ],
      "destinations": [
        "797836617237790771"
      ],
      "options": {
        "title": false,
        "richEmbed": true,
        "richEmbedColor": 30970,
        "includeSource": false,
        "removeEveryone": true,
        "removeHere": true,
        "copyRichEmbed": true,
        "copyAttachments": true,
        "minLength": 0,
        "allowList": []
      }
    },
    {
      "sources": [
        "766449639686799380",
      ],
      "destinations": [
        "797854631791034378"
      ],
      "options": {
        "title": false,
        "richEmbed": true,
        "richEmbedColor": 30970,
        "includeSource": false,
        "removeEveryone": true,
        "removeHere": true,
        "copyRichEmbed": true,
        "copyAttachments": true,
        "minLength": 0,
        "allowList": []
      }
    }
  ]
}

from discord-echobot.

jaredmarcus avatar jaredmarcus commented on July 2, 2024

image

from discord-echobot.

jaredmarcus avatar jaredmarcus commented on July 2, 2024

2021-01-10T17_19_11_917Z-debug.log
This is the debug file

from discord-echobot.

MitchTalmadge avatar MitchTalmadge commented on July 2, 2024

In each of your sources lists, make sure the last item (which is the only item in this case) does not end with a comma. I see that both of them have commas at the end. JSON is really picky like that :P

from discord-echobot.

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.