<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hlwiki.com/index.php?action=history&amp;feed=atom&amp;title=DiscordBridgeSetup</id>
	<title>DiscordBridgeSetup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hlwiki.com/index.php?action=history&amp;feed=atom&amp;title=DiscordBridgeSetup"/>
	<link rel="alternate" type="text/html" href="https://hlwiki.com/index.php?title=DiscordBridgeSetup&amp;action=history"/>
	<updated>2026-04-18T13:08:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://hlwiki.com/index.php?title=DiscordBridgeSetup&amp;diff=367&amp;oldid=prev</id>
		<title>Lostarch: Created page with &quot;{{HotlineNav}} == Setting Up the Discord-Hotline Bridge ==  This guide explains how to deploy the Python Bridge Script on a modern server (Linux, Windows, or macOS).  === Prerequisites === * &#039;&#039;&#039;Python 3.8+&#039;&#039;&#039;: Ensure Python is installed on your system. * &#039;&#039;&#039;Discord Bot Token&#039;&#039;&#039;: Required to authenticate with the Discord API. * &#039;&#039;&#039;Hotline Server Access&#039;&#039;&#039;: The IP and Port of the Hotline server you wish to bridge.  === Step 1: Install Dependenc...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hlwiki.com/index.php?title=DiscordBridgeSetup&amp;diff=367&amp;oldid=prev"/>
		<updated>2026-03-03T21:56:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{HotlineNav}} == Setting Up the Discord-Hotline Bridge ==  This guide explains how to deploy the &lt;a href=&quot;/index.php/HL_Protocol:BridgeScript&quot; title=&quot;HL Protocol:BridgeScript&quot;&gt;Python Bridge Script&lt;/a&gt; on a modern server (Linux, Windows, or macOS).  === Prerequisites === * &amp;#039;&amp;#039;&amp;#039;Python 3.8+&amp;#039;&amp;#039;&amp;#039;: Ensure Python is installed on your system. * &amp;#039;&amp;#039;&amp;#039;Discord Bot Token&amp;#039;&amp;#039;&amp;#039;: Required to authenticate with the Discord API. * &amp;#039;&amp;#039;&amp;#039;Hotline Server Access&amp;#039;&amp;#039;&amp;#039;: The IP and Port of the Hotline server you wish to bridge.  === Step 1: Install Dependenc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{HotlineNav}}&lt;br /&gt;
== Setting Up the Discord-Hotline Bridge ==&lt;br /&gt;
&lt;br /&gt;
This guide explains how to deploy the [[HL_Protocol:BridgeScript|Python Bridge Script]] on a modern server (Linux, Windows, or macOS).&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Python 3.8+&amp;#039;&amp;#039;&amp;#039;: Ensure Python is installed on your system.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Discord Bot Token&amp;#039;&amp;#039;&amp;#039;: Required to authenticate with the Discord API.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Hotline Server Access&amp;#039;&amp;#039;&amp;#039;: The IP and Port of the Hotline server you wish to bridge.&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Install Dependencies ===&lt;br /&gt;
The bridge relies on two primary libraries: &amp;lt;code&amp;gt;discord.py&amp;lt;/code&amp;gt; for the bot interface and &amp;lt;code&amp;gt;aiohttp&amp;lt;/code&amp;gt; for the webhook relay. Open your terminal and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pip install discord.py aiohttp&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Create a Discord Webhook ===&lt;br /&gt;
To allow the bot to post messages with custom Hotline icons, you must use a Webhook.&lt;br /&gt;
# Go to your Discord Server Settings &amp;gt; Integrations &amp;gt; Webhooks.&lt;br /&gt;
# Click &amp;quot;New Webhook.&amp;quot;&lt;br /&gt;
# Copy the &amp;#039;&amp;#039;&amp;#039;Webhook URL&amp;#039;&amp;#039;&amp;#039;. You will need this for the config file.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Configure the Bot ===&lt;br /&gt;
Create a file named &amp;lt;code&amp;gt;config.json&amp;lt;/code&amp;gt; in the same directory as your script. Use the following template:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;discord_token&amp;quot;: &amp;quot;YOUR_BOT_TOKEN_HERE&amp;quot;,&lt;br /&gt;
    &amp;quot;discord_channel_id&amp;quot;: 1234567890123456,&lt;br /&gt;
    &amp;quot;discord_webhook_url&amp;quot;: &amp;quot;https://discord.com/api/webhooks/...&amp;quot;,&lt;br /&gt;
    &amp;quot;hotline_host&amp;quot;: &amp;quot;72.62.163.172&amp;quot;,&lt;br /&gt;
    &amp;quot;hotline_port&amp;quot;: 5500,&lt;br /&gt;
    &amp;quot;manual_admins&amp;quot;: [&amp;quot;Tagban&amp;quot;, &amp;quot;Knezzen&amp;quot;],&lt;br /&gt;
    &amp;quot;admin_prefix&amp;quot;: &amp;quot;&amp;gt; **[ADMIN]** &amp;quot;,&lt;br /&gt;
    &amp;quot;user_prefix&amp;quot;: &amp;quot;```fix\n&amp;quot;,&lt;br /&gt;
    &amp;quot;user_suffix&amp;quot;: &amp;quot;\n```&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 4: Launching the Bridge ===&lt;br /&gt;
Run the script using the following command:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
python bridge.py&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Once connected, you should see &amp;lt;code&amp;gt;✅ Hotline Connected (Guest Mode)&amp;lt;/code&amp;gt; in your console.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Connection Refused&amp;#039;&amp;#039;&amp;#039;: Ensure the Hotline server allows Guest connections (0x6b).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;No Messages in Discord&amp;#039;&amp;#039;&amp;#039;: Verify the &amp;lt;code&amp;gt;discord_channel_id&amp;lt;/code&amp;gt; is correct and the bot has &amp;quot;View Channel&amp;quot; and &amp;quot;Send Messages&amp;quot; permissions.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Lostarch</name></author>
	</entry>
</feed>