mitchtalmadge / discord-echobot Goto Github PK
View Code? Open in Web Editor NEWA Node.js Discord Self-Bot to Copy Messages from one or more Channels to one or more others.
License: GNU General Public License v3.0
A Node.js Discord Self-Bot to Copy Messages from one or more Channels to one or more others.
License: GNU General Public License v3.0
C:\Users\Owner\Desktop\echo\discord-echobot-1.2.1>npm install
> [email protected] install C:\Users\Owner\Desktop\echo\discord-echobot-1.2.1
> tsc
error TS18003: No inputs were found in config file 'C:/Users/Owner/Desktop/echo/discord-echobot-1.2.1/tsconfig.json'. Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '["node_modules","**/*.spec.ts"]'.
node_modules/@types/node/index.d.ts:39:1 - error TS1084: Invalid 'reference' directive syntax.
39 /// <reference lib="es2017" />
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] install: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Owner\AppData\Roaming\npm-cache\_logs\2020-10-16T22_50_27_499Z-debug.log
In Heroku settings there's actually a section for config vars, is this an appropriate place to put the env variable?
Since this is a BASH-style variable, I'm unsure how to key:value the data. Readme says formatting doesn't matter, but there are nested data values. Should I be using an associated array?
Cheers
Hi,
I've been using the bot for a while now and gotta say I really like it.
It has been doing all I wanted/needed it to do, so thanks for that.
I'm only experiencing one issue:
When the original message contains a image that has been uploaded to Discord (so not via a URL, but directly uploaded from the original poster's device), the bot doesn't copy the image.
Is there a way to do that? I was thinking that every image gets an own URL once it's been uploaded to Discord (for example https://cdn.discordapp.com/attachments/583252052814069774/601410645421981716/testimagediscord.png).
If the bot wouldn't be able to copy the image itself, would it be able to copy the URL of the image instead?
Thanks in advance.
Best regards
just wanted to know
The bot copies all embeds perfectly, but is it possible that it can copy only the text in the embed and paste it as text and not as another embed???
x
Hi, could someone assist me please, I've tried removing parts of the code but it stops working.
I just want to remove the Author text, and just show the source message + the server name (not the channel path).
ps; is it possible to alternate colours from different channels?
Àny possibility to set a minimum of characters needed to repost?
This line is appearing in my terminal output when a message contains no content other than an attached image. I've included screenshots of my config file (the section specific to this source) and the source message for reference. You can see in the log the very next message contained text and redirected normally. Rich embeds with attached images in other sources are working great. It's just when someone directly posts just an image in a message with no accompanying text that it seems to do this.
Thank you so much for this code. It's been a huge life saver for me to consolidate information from various sources and redirect them to individual channels on my own personal server for my own use. Being able to just go one place to get a ton of information is invaluable to me.
Hi, this bot is extremely good, but it does not copy that well from already embedded sources. Some of the embedded sources I am trying to redirect have pictures and/or hyperlinks as their title which do not show up. Perhaps maybe include options for this in the next update? Thank you!
I need multiple redirections with one source and one destination. I tried adding a second one and according to the output it works:
However, the second message is not showing up in my server. When I change one of the options, for example includeSource (no matter if it's in the first or second redirect) they DO both show. Any idea why?
Hi,
This does exactly what I need! And it just works!
I would like to know if the risk of ban is really important, since it is not an official bot?
What is the best way to support application maintenance ?
I wouldn't want to go in one direction and see that the application is no longer supported.
Thanks
Error: Cannot find module 'C:\Users\Administrator\Desktop\echo bot\discord-echobot-master\bin\echobot.js'
npm ERR! [email protected] start: node ./bin/echobot.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
Hi, how can i apply different options (eg. title) for each different source?
For instance, for message coming from server A, it should be titled "server 1" and for message coming from server B, it should be titled "server 2".
I tried to duplicate the code but it is not running. Example:
{
"token": "mfa.yourtoken-shouldgoherejklsdfhsoiehfseihfseifbisoehfoisefise",
"redirects": [
{
"sources": [
"123456789321432454"
],
"destinations": [
"129863219696239848"
],
"options": {
"title": "Server 1",
"richEmbed": true,
"richEmbedColor": 30975,
"includeSource": true,
"removeEveryone": true,
"removeHere": true,
"copyRichEmbed": true
}
}
]
"token": "mfa.yourtoken-shouldgoherejklsdfhsoiehfseihfseifbisoehfoisefise",
"redirects": [
{
"sources": [
"124354366576899678"
],
"destinations": [
"129863219696239848"
],
"options": {
"title": "Server 2",
"richEmbed": true,
"richEmbedColor": 30975,
"includeSource": true,
"removeEveryone": true,
"removeHere": true,
"copyRichEmbed": true
}
}
]
}
Thanks.
Worked briefly, got Pong and messages were copied on Discord.
10 minutes later getting crashed error, unable to ping.
Amazing work this bot!
Is it possible to set a filter for a specific user ID or if even possible multiple user ids?
As many messages are sent in different sources ids at same point of time , then bot is pasting the messages very slowly in the destination id..
Can we make it fast so that it doesn't lat behind...
Sometimes when 50+ messages are there in the source at a same time , then bot is unable to paste the messages fast.. it is pasting but very slowly...
Can we make the bot FAST?
i tried to deploy to heroku and it failed.
https://pastebin.com/FmTds2L4
Would there be a way to show the message that the person is replying to using the new discord "Reply" feature?
the bot only copys certain parts of the messages. it does not copy image and missing a few words and links
2020-08-17T08:15:46.091Z [INFO]: Configuration loaded successfully.
2020-08-17T08:15:46.927Z [INFO]: Signed into Discord.
2020-08-17T08:15:52.255Z [INFO]: Redirecting message by Channel.TV from Channel.TV/live-discussion to Channel.TV/old
(node:17964) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
at C:\Users\Administrator\Desktop\discord-echobot-master - v2\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15
at C:\Users\Administrator\Desktop\discord-echobot-master - v2\node_modules\discord.js\node_modules\snekfetch\src\index.js:215:21
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:17964) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:17964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Not sure if its possible, but a feature that would direct certain channels to a specific channel instead of all the destinations if that makes sense. So channel A as the source would go to channel C and then channel B would go to channel D instead of how the current config is for channel A and B to go to both channel C and D. Separating channels to go to specific channels.
Can we copy only that type of messages which we want to copy ?
Like if I want to copy the message of someone writing 1or 2 or 3 or why , what
That how can i modify the code ?
I think then the problem of slow working of bot might be solved
Can we copy only that type of messages which we want to copy ?
like in a text channel.. chats are going on like this....
How it is?
That's true
What you want
1
Hey
2
Bro
3
In this , i only want to copy the message 1,2,3 and not any other thing..
So , how can i do that ?
Where in the code i have to modify?
Hi,
It would be great if this tool could also edit the destination message when the source one is updated.
Would this be possible soon ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.