-
-
Save RoboMWM/b16813f616a5a122f4fd28486ea8eb58 to your computer and use it in GitHub Desktop.
Dumcord -> IRC works, IRC -> dumcord does not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dis4IRC Configuration File | |
# A list of bridges that Dis4IRC should start up | |
# Each bridge can bridge multiple channels between a single IRC and Discord Server | |
bridges { | |
# A bridge is a single bridged connection operating in its own space away from all the other bridges | |
# Most people will only need this one default bridge | |
default { | |
announce-joins-and-quits=false | |
# Mappings are the channel <-> channel bridging configurations | |
channel-mappings { | |
"420118648418467840"="#RoboMWM" | |
} | |
# Your discord API key you registered your bot with | |
discord-api-key="redacted" | |
# Configuration for connecting to the IRC server | |
irc { | |
allow-invalid-ssl-certs=false | |
anti-ping=true | |
# A list of __raw__ irc messages to send | |
init-commands-list=[ | |
"PRIVMSG NICKSERV info", | |
"PRIVMSG NICKSERV help" | |
] | |
nickname=Dumcord | |
# Messages that match this regular expression will be passed to IRC without a user prefix | |
no-prefix-regex=null | |
port="6697" | |
realname=dum | |
server="irc.spi.gt" | |
use-ssl=true | |
username=cord | |
} | |
} | |
} | |
debug-logging=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\dum\Downloads>java -Xmx128M -Xms128M -jar Dis4IRC-1.0.2.jar | |
[03:30:56] [init] [INFO] - Dis4IRC v1.0.2-d4c6204 | |
[03:30:56] [init] [INFO] - Built on 2019-01-02T23:30:28Z | |
[03:30:56] [init] [INFO] - Source available at https://github.com/zachbr/Dis4IRC | |
[03:30:56] [init] [INFO] - Available under the MIT License | |
[03:30:56] [init] [INFO] - Loading config from: config.hocon | |
[03:30:56] [init] [DEBUG] - Debug logging enabled | |
[03:30:56] [init] [INFO] - Starting bridge: default | |
[03:30:57] [default] [DEBUG] - BridgeConfiguration(bridgeName=default, ircHostname=irc.spi.gt, ircPassword=null, ircPort=6697, ircSslEnabled=true, ircAllowInvalidCerts=false, ircNickName=Dumcord, ircUserName=cord, ircRealName=dum, ircAntiPing=true, ircNoPrefixRegex=null, ircCommandsInit=[PRIVMSG NICKSERV info, PRIVMSG NICKSERV help], discordApiKey=redacted, announceJoinsQuits=false, discordWebHooks=[], channelMappings=[ChannelMapping(discordChannel=420118648418467840, ircChannel=#RoboMWM)]) | |
[03:30:57] [default] [INFO] - Connecting to Discord API... | |
[03:30:58] [net.dv8tion.jda.core.requests.Requester] [DEBUG] - Received response with following cf-rays: [4a191a49ad5241c9-SJC] | |
[03:30:58] [net.dv8tion.jda.core.requests.Requester] [DEBUG] - Received response with following cf-rays: [4a191a4a4d9341c9-SJC] | |
[03:30:58] [net.dv8tion.jda.core.JDA] [INFO] - Login Successful! | |
[03:30:58] [net.dv8tion.jda.core.requests.WebSocketClient] [INFO] - Connected to WebSocket | |
[03:30:58] [net.dv8tion.jda.core.requests.WebSocketClient] [DEBUG] - Sending Identify-packet... | |
[03:30:58] [net.dv8tion.jda.core.requests.WebSocketClient] [DEBUG] - Got HELLO packet (OP 10). Initializing keep-alive. | |
[03:30:58] [net.dv8tion.jda.core.requests.WebSocketClient] [DEBUG] - Received a _trace for HELLO (OP: 10) with ["gateway-prd-main-qp8p"] | |
[03:30:58] [net.dv8tion.jda.core.requests.WebSocketClient] [DEBUG] - Received a _trace for READY (OP: 0) with ["gateway-prd-main-qp8p","discord-sessions-prd-1-25"] | |
[03:30:58] [net.dv8tion.jda.core.handle.GuildSetupController] [DEBUG] - Setting incomplete count to 1 | |
[03:30:59] [net.dv8tion.jda.core.JDA] [INFO] - Finished Loading! | |
[03:30:59] [net.dv8tion.jda.core.handle.GuildSetupController] [DEBUG] - Finished setup for guild 95072647322271744 firing cached events 0 | |
[03:30:59] [net.dv8tion.jda.core.requests.RateLimiter] [DEBUG] - Encountered issue with headers when updating a bucket | |
Route: oauth2/applications/@me | |
Headers: Date: Thu, 31 Jan 2019 03:30:59 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
Set-Cookie: __cfduid=d5e5f57301fc677a5d8b76386093869ff1548905459; expires=Fri, 31-Jan-20 03:30:59 GMT; path=/; domain=.discordapp.com; HttpOnly | |
Strict-Transport-Security: max-age=31536000; includeSubDomains | |
Content-Encoding: gzip | |
Via: 1.1 google | |
Alt-Svc: clear | |
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" | |
Server: cloudflare | |
CF-RAY: 4a191a4ffffc41c9-SJC | |
[03:30:59] [net.dv8tion.jda.core.requests.Requester] [DEBUG] - Received response with following cf-rays: [4a191a4ffffc41c9-SJC] | |
[03:30:59] [default] [INFO] - Discord Bot Invite URL: https://discordapp.com/oauth2/authorize?scope=bot&client_id=448961508354031638 | |
[03:30:59] [default] [INFO] - Connected to Discord! | |
[03:30:59] [default] [INFO] - Connecting to IRC Server | |
[03:30:59] [io.netty.util.internal.logging.InternalLoggerFactory] [DEBUG] - Using SLF4J as the default logging framework | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - Platform: Windows | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - -Dio.netty.noUnsafe: false | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - Java version: 8 | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - sun.misc.Unsafe.theUnsafe: available | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - sun.misc.Unsafe.copyMemory: available | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - java.nio.Buffer.address: available | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - direct buffer constructor: available | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - java.nio.Bits.unaligned: available, true | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9 | |
[03:30:59] [io.netty.util.internal.PlatformDependent0] [DEBUG] - java.nio.DirectByteBuffer.<init>(long, int): available | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - sun.misc.Unsafe: available | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - -Dio.netty.tmpdir: C:\Users\dum\AppData\Local\Temp\3 (java.io.tmpdir) | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - -Dio.netty.bitMode: 64 (sun.arch.data.model) | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - -Dio.netty.noPreferDirect: false | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - -Dio.netty.maxDirectMemory: 129761280 bytes | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - -Dio.netty.uninitializedArrayAllocationThreshold: -1 | |
[03:30:59] [io.netty.util.internal.CleanerJava6] [DEBUG] - java.nio.ByteBuffer.cleaner(): available | |
[03:30:59] [io.netty.channel.MultithreadEventLoopGroup] [DEBUG] - -Dio.netty.eventLoopThreads: 2 | |
[03:30:59] [io.netty.channel.nio.NioEventLoop] [DEBUG] - -Dio.netty.noKeySetOptimization: false | |
[03:30:59] [io.netty.channel.nio.NioEventLoop] [DEBUG] - -Dio.netty.selectorAutoRebuildThreshold: 512 | |
[03:30:59] [io.netty.util.internal.PlatformDependent] [DEBUG] - org.jctools-core.MpscChunkedArrayQueue: available | |
[03:30:59] [io.netty.channel.DefaultChannelId] [DEBUG] - -Dio.netty.processId: 668 (auto-detected) | |
[03:30:59] [io.netty.util.NetUtil] [DEBUG] - -Djava.net.preferIPv4Stack: false | |
[03:30:59] [io.netty.util.NetUtil] [DEBUG] - -Djava.net.preferIPv6Addresses: false | |
[03:30:59] [io.netty.util.NetUtil] [DEBUG] - Loopback interface: lo (Software Loopback Interface 1, 127.0.0.1) | |
[03:30:59] [io.netty.util.NetUtil] [DEBUG] - Failed to get SOMAXCONN from sysctl and file \proc\sys\net\core\somaxconn. Default: 200 | |
[03:30:59] [io.netty.channel.DefaultChannelId] [DEBUG] - -Dio.netty.machineId: 00:0d:3a:ff:fe:30:a5:1f (auto-detected) | |
[03:30:59] [io.netty.util.internal.InternalThreadLocalMap] [DEBUG] - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024 | |
[03:30:59] [io.netty.util.internal.InternalThreadLocalMap] [DEBUG] - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096 | |
[03:30:59] [io.netty.util.ResourceLeakDetector] [DEBUG] - -Dio.netty.leakDetection.level: simple | |
[03:30:59] [io.netty.util.ResourceLeakDetector] [DEBUG] - -Dio.netty.leakDetection.targetRecords: 4 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.numHeapArenas: 1 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.numDirectArenas: 1 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.pageSize: 8192 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.maxOrder: 11 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.chunkSize: 16777216 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.tinyCacheSize: 512 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.smallCacheSize: 256 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.normalCacheSize: 64 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.maxCachedBufferCapacity: 32768 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.cacheTrimInterval: 8192 | |
[03:31:00] [io.netty.buffer.PooledByteBufAllocator] [DEBUG] - -Dio.netty.allocator.useCacheForAllThreads: true | |
[03:31:00] [io.netty.buffer.ByteBufUtil] [DEBUG] - -Dio.netty.allocator.type: pooled | |
[03:31:00] [io.netty.buffer.ByteBufUtil] [DEBUG] - -Dio.netty.threadLocalDirectBufferSize: 65536 | |
[03:31:00] [io.netty.buffer.ByteBufUtil] [DEBUG] - -Dio.netty.maxThreadLocalCharBufferSize: 16384 | |
[03:31:00] [default] [DEBUG] - Joined #RoboMWM | |
[03:31:00] [default] [INFO] - Connected to IRC! | |
[03:31:00] [io.netty.buffer.AbstractByteBuf] [DEBUG] - -Dio.netty.buffer.bytebuf.checkAccessible: true | |
[03:31:00] [io.netty.util.ResourceLeakDetectorFactory] [DEBUG] - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@cb4f8b9 | |
[03:31:00] [io.netty.handler.ssl.OpenSsl] [DEBUG] - netty-tcnative not in the classpath; OpenSslEngine will be unavailable. | |
[03:31:00] [io.netty.handler.ssl.JdkSslContext] [DEBUG] - Default protocols (JDK): [TLSv1.2, TLSv1.1, TLSv1] | |
[03:31:00] [io.netty.handler.ssl.JdkSslContext] [DEBUG] - Default cipher suites (JDK): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA] | |
[03:31:00] [io.netty.util.Recycler] [DEBUG] - -Dio.netty.recycler.maxCapacityPerThread: 32768 | |
[03:31:00] [io.netty.util.Recycler] [DEBUG] - -Dio.netty.recycler.maxSharedCapacityFactor: 2 | |
[03:31:00] [io.netty.util.Recycler] [DEBUG] - -Dio.netty.recycler.linkCapacity: 16 | |
[03:31:00] [io.netty.util.Recycler] [DEBUG] - -Dio.netty.recycler.ratio: 8 | |
[03:31:01] [io.netty.handler.ssl.SslHandler] [DEBUG] - [id: 0xb9bd2199, L:/10.0.2.4:50408 - R:irc.spi.gt/139.162.7.69:6697] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | |
[03:31:55] [default] [DEBUG] - IRC MSG #robomwm RoboMWM: asdf;lkj | |
[03:31:55] [default] [DEBUG] - Discarding message with no bridge target from: Source(channelName=#robomwm, discordId=null, type=IRC) | |
[03:33:28] [default] [DEBUG] - DISCORD MSG robomwm RoboMWM: weird, it's not detecting a "bridge target" | |
[03:33:29] [default] [DEBUG] - Message from robomwm RoboMWM took 684ms to handle | |
[03:35:22] [default] [INFO] - Stopping... | |
[03:35:22] [default] [WARN] - IRC connection closed: null reason | |
[03:35:22] [default] [INFO] - Will attempt to reconnect | |
[03:35:23] [default] [INFO] - default stopped |
Upon more testing, it seems that it doesn't like the IRC channel names. Maybe they're too big? (all IRC channel names match dumcord channel names so nothing there).
See zachbr/Dis4IRC#21 for further discussion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It only seems to work with only one of my channels, be it the bot handling multiple channels or just that one.
Results in only the #MLG channel being properly bridged.