MysteryPancake / Discord-Reposter

Bot for reposting Discord messages (work in progress)
MIT License
94 stars 124 forks source link

Filter #3

Closed cryptohospital closed 6 years ago

cryptohospital commented 6 years ago

Hello, Im wondering , is there a chance to filter our text and change it . For example : I copy from my discord server , where person or bot named A . And repost to my other server , but instead of name A it changes to name B . Is it somehow possible ?

cryptohospital commented 6 years ago

Or even in reposted texts , if it detects letter A , it changes to letter B. So I could give some words , to change them to other ones , when got reposted. Hope You understood me ;)

MysteryPancake commented 6 years ago

I think that would be possible. Just wondering, what do you want to do this for, just so I can understand better?

cryptohospital commented 6 years ago

I have 2 crypto servers - and I want in both the same content from few channels - but I dont want to repost in second server , first server details - for example person or bot who posted , or if person or bot is mentioned in message, So it would be awesome If i could write down words, names or phrases and automatically repost with my chosen name or phrase.

example: This is posted in server 1 . and i copy from this to repost to server 2. BOTaaaa - @everyone

CND BTC (BINANCE)

BUY : 340-368 SELL : - 395-420-450

This is server 2: Where bot changed BOTaaaa to BOTxxxx. BOTxxxx - @everyone

CND BTC (BINANCE)

BUY : 340-368 SELL : - 395-420-450

MysteryPancake commented 6 years ago

Ok, sorry, but I just want to make sure I understand what you mean: Do you want the bot to repost a message containing certain text whenever this text is said? Then you want the name to change - do you mean the actual bot's name or the name it posts? If you mean the actual bot's name, could you use a nickname for the bot on the other server? Also, is BOTaaaa and BOTxxxx meant to be this bot, or another bot? Do you want this bot to repost from other bots?

cryptohospital commented 6 years ago

yes , if in text is word botaaa , it should repost with text botxxx, change words in reposted message. For the bot that reposts , i can change nickname on server , thats not problem .But i want to be able filter out words, phrases in texts , and repost with mine words , phrases. Sorry my english is not so good , hard to explain :/

MysteryPancake commented 6 years ago

Ok, thank you! Sorry, I understand now. I was thinking you wanted something like trigger words that cause it to repost certain messages, rather than just a replacement for any messages being reposted.

I will try to add this to the bot, but until I do, you can also do this by changing line 74 for the author username, or line 78 for the message content. Use any replacement method you want to replace parts of the text.

MysteryPancake commented 6 years ago

I added this feature today! Please tell me if this works for what you wanted to do. Type /repost replace BOTaaaa BOTxxxx to replace BOTaaaa with BOTxxxx whenever you repost.

MysteryPancake commented 6 years ago

I think I will close this issue for now, because I think this might solve the issue. Please reopen if this isn't what you meant