Comments (6)
Wow, this is actually legit! The direct channel does work! You should note it somewhere in the documentation! Thanks alot man!
from discord-echobot.
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.
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.
from discord-echobot.
2021-01-10T17_19_11_917Z-debug.log
This is the debug file
from discord-echobot.
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)
- Possible to just echo messages from special user-id? HOT 1
- Possibility to set a minimum of characters needed to repost? HOT 1
- app couldnt deploy to heroku HOT 3
- Error when typing npm start:
- Error when copying message from channel where bot is unable to send messages but can read
- Failure during install HOT 1
- rich embed as normal text HOT 5
- Messages dropping that contain only an attached image HOT 3
- Update messages
- Reply Messages HOT 1
- Trouble with setup HOT 5
- Env variable when deploying to heroku HOT 2
- Feedback
- x
- H10 error on Heroku HOT 1
- How to remove "Author" from source message?
- does not copy all the embed HOT 1
- Problem adding multiple redirections HOT 3
- Copying uploaded images from a message HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-echobot.