public
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
bashtel.ru
|
||||
creep.im
|
||||
darkengine.biz
|
||||
default.rs
|
||||
exploit.im
|
||||
hiddenlizard.org
|
||||
jabber.bitactive.com
|
||||
jabber.cd
|
||||
jabber.cz
|
||||
jabber.freenet.de
|
||||
jabber.ipredator.se
|
||||
jabber.npw.net
|
||||
jabber.sampo.ru
|
||||
jabbim.pl
|
||||
labas.biz
|
||||
otr.chat
|
||||
paranoid.scarab.name
|
||||
rassnet.org
|
||||
safetyjabber.com
|
||||
sj.ms
|
||||
trashserver.net
|
||||
xmpp.bytesund.biz
|
||||
@@ -0,0 +1,21 @@
|
||||
# This script depends on spam-blocking.pfw also being loaded
|
||||
# Any traffic that is not explicitly blocked or allowed by other
|
||||
# rules will be checked against the JabberSPAM server blocklist
|
||||
|
||||
%LIST blocklist: file:/usr/local/etc/prosody/firewall/blacklist.txt
|
||||
#%LIST blocklist: https://cdn.jsdelivr.net/gh/jabberspam/blacklist/blacklist.txt
|
||||
|
||||
::user/spam_handle_unknown_custom
|
||||
|
||||
CHECK LIST: blocklist contains $<@from|host>
|
||||
BOUNCE=policy-violation (Your server is blocked due to spam)
|
||||
|
||||
::user/spam_check_muc_invite_custom
|
||||
|
||||
# Check the server we received the invitation from
|
||||
CHECK LIST: blocklist contains $<@from|host>
|
||||
BOUNCE=policy-violation (Your server is blocked due to spam)
|
||||
|
||||
# Check the inviter's JID against the blocklist, too
|
||||
CHECK LIST: blocklist contains $<{http://jabber.org/protocol/muc#user}x/invite@from|host>
|
||||
BOUNCE=policy-violation (Your server is blocked due to spam)
|
||||
@@ -0,0 +1,54 @@
|
||||
#https://github.com/42wim/matterbridge
|
||||
|
||||
###################################################################
|
||||
#XMPP section - berriketak
|
||||
###################################################################
|
||||
[xmpp]
|
||||
[xmpp.telegram_berriketak]
|
||||
Server= "server:5222"
|
||||
Jid="admin@example.com"
|
||||
Password="passw0rd"
|
||||
Muc="conference.example.com"
|
||||
Nick="Admin"
|
||||
SkipTLSVerify=true
|
||||
RemoteNickFormat="{TENGO}({PROTOCOL}) "
|
||||
ShowJoinPart=false
|
||||
|
||||
###################################################################
|
||||
#telegram section - berriketak
|
||||
###################################################################
|
||||
[telegram]
|
||||
[telegram.chat_xmppBot]
|
||||
Token="434963xxx:AAHRbJAw9oN30b9KdjWacnyYyHS22r05xxx" #token berriket_xmppBot
|
||||
MessageFormat="HTMLNick"
|
||||
EditDisable=false
|
||||
EditSuffix=" (edited)"
|
||||
IgnoreNicks="spammer1 spammer2"
|
||||
RemoteNickFormat="{NICK}: "
|
||||
ShowJoinPart=false
|
||||
UseInsecureURL=true
|
||||
MediaConvertWebPToPNG=true
|
||||
DisableWebPagePreview=false
|
||||
|
||||
[tengo]
|
||||
#RemoteNickFormat="remotenickformat.tengo"
|
||||
RemoteNickFormat="/etc/matterbridge/nicks.tengo"
|
||||
#InMessage="/etc/matterbridge/in.tengo"
|
||||
OutMessage="/etc/matterbridge/out.tengo"
|
||||
|
||||
###################################################################
|
||||
#gateway section
|
||||
###################################################################
|
||||
[[gateway]]
|
||||
name="test"
|
||||
enable=true
|
||||
|
||||
[[gateway.inout]]
|
||||
account="xmpp.telegram_chat"
|
||||
channel="test"
|
||||
|
||||
[[gateway.inout]]
|
||||
account="telegram.chat_xmppBot"
|
||||
#channel="-241666435" #Telegram xmpp_test taldearen ID-a
|
||||
channel="-1001617641xxx"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/*Customize nicks from X to XMPP*/
|
||||
result = nick
|
||||
if(nick == "Mikel Jauregi") {
|
||||
result = "Mikeltxo"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
text := import("text")
|
||||
fmt := import("fmt")
|
||||
|
||||
fmt.println(msgText)
|
||||
|
||||
if(inProtocol == "telegram"){
|
||||
if text.index(msgText, "https") > 1 {
|
||||
media_array := text.re_split(":", msgText, 2)
|
||||
fmt.println(media_array)
|
||||
if len(media_array) > 1 {
|
||||
//TG desktop
|
||||
media := text.trim_prefix(media_array[1]," ")
|
||||
//msgText=media
|
||||
bold := "**"+media+"**"
|
||||
//link := "[link]("+media+")"
|
||||
//msgText =link
|
||||
msgText = text.re_replace("MEDIA", bold, msgText)
|
||||
//msgText=""
|
||||
//msgText=text.re_replace("matterbridge",msgText,"matterbridge (https://github.com/42wim/matterbridge)")
|
||||
}else{
|
||||
//TG android
|
||||
msgText="https:"+media_array[0]
|
||||
}
|
||||
|
||||
}
|
||||
}else{
|
||||
//capitalize + bold
|
||||
msgUsername = "<strong>"+text.title(msgUsername)+"</strong>"
|
||||
msgText = msgText
|
||||
}
|
||||
Reference in New Issue
Block a user