davidmckenzie / discord-selfrelay Goto Github PK
View Code? Open in Web Editor NEWRelay messages from one Discord server to another via a selfbot and webhook
License: The Unlicense
Relay messages from one Discord server to another via a selfbot and webhook
License: The Unlicense
Great little bot.
Is there a way to change the name that shows up? Its showing the name of the other server I'm relaying from, Was hoping to either use a custom name or the one set in the webhook
1- Some embed contains footer with source channel info.
To remove it add this code:
if (embed['footer'])
delete embed['footer'];
2- Some message contain mentions like @user-role. If user role is not in the destination server, the @deleted-role appears.
To remove mention from message add this code:
let messageParse = message.content;
let roles = message.mentions.roles;
let members = message.mentions.members;
if (messageParse.match(Discord.MessageMentions.ROLES_PATTERN) || messageParse.match(Discord.MessageMentions.USERS_PATTERN)) {
roles.forEach((value) => {
messageParse = messageParse.replace(Discord.MessageMentions.ROLES_PATTERN, '');
});
members.forEach((value) => {
messageParse = messageParse.replace(Discord.MessageMentions.USERS_PATTERN, '');
});
}
does this still work?
i tried running it on windows but couldn't get it to work. i would actually pay to have a function like this..
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.