Raised This Month: $51 Target: $400
 12% 

[ANY] Sourcebridge (BETA)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Plugin ID:
8064
Plugin Version:
0.9 BETA
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Powered by Matterbridge, Sourcebridge is a plugin for Sourcemod that allows simple bridging between your game servers, Mattermost, IRC, XMPP, Gitter, Slack, Discord, Telegram, and more.
    Old 05-23-2022 , 23:50   [ANY] Sourcebridge (BETA)
    Reply With Quote #1


    Sourcebridge
    Author: gabuch2
    Powered by Matterbridge, Sourcebridge is a plugin for Sourcemod that allows simple bridging between your game servers, Mattermost, IRC, XMPP, Gitter, Slack, Discord, Telegram, and more.



    Description

    Using Matterbridge API, this plugin allows you to bridge your game server with a Matterbridge installation, relaying messages from/to a growing number of protocols.

    You can also bridge multiple servers together so the players can chat between each one.

    Protocols natively supported in Matterbridge
    • Mattermost
    • IRC
    • XMPP
    • Gitter
    • Slack
    • Discord
    • Telegram
    • Rocket.chat
    • Matrix
    • Steam (Bugged for now)
    • Twitch
    • Ssh-chat
    • WhatsApp
    • Zulip
    • Keybase

    Dependencies

    This plugin requires the following to work:
    Supported Games

    This plugin is supposed to be mod agnostic. All official games should work out of the box.

    Tested Games
    • Left 4 Dead 2

    Installation Instructions
    • Do not download the .smx file from here. As the webcompiler lacks the includes needed to generate the plugin correctly.
    • Download all requirements, plus the .sm file.
    • Place include files in the /scripting/includes directory.
    • Compile the plugin and install the newly generated .smx file. (Remember to install the latest version of REST in Pawn in your server)

    Setting up Sourcebridge

    This quickstart guide assumes you already have a working Matterbridge installation.

    Open your matterbridge.toml file and add the following lines:

    Code:
    [api.myserver]
    BindAddress="0.0.0.0:1337"
    Token="verysecrettoken"
    Buffer=1000
    RemoteNickFormat="{NICK}"
    Where "myserver" is goes the name of the relay, you can put anything.

    Find your gateway where you want to relay the messages.
    Quote:
    [[gateway]]
    name="cstrike"
    enable=true

    [[gateway.inout]]
    account="discord.mydiscord"
    channel="general"

    [[gateway.inout]]
    account="api.myserver"
    channel="api"
    Where cstrike is goes the gateway name. You can change it using cvars, you can add more gateway.inout entries depending on how many protocols do you want to relay messages.

    Avatar Spoofing

    It's possible to set up avatars for each user on protocols that support it. You need to get a Steam Web API key and place it in the respective cvar.

    Roadmap

    As this is a port of my previous project, MatterAMXX. The roadmap is to implement most of its features so you can enjoy Sourcebridge at its fullest. The plugin is already in an usable state but lacks most of MatterAMXX features.

    Console Variables
    Code:
    // Enable Sourcebridge. // - // Default: "1" sm_sourcebridge_enabled "1" // Matterbridge gateway on where Sourcebridge should connect to. // - // Default: "" sm_sourcebridge_gateway "" // Domain of where your Matterbridge instance is hosted. // - // Default: "localhost" sm_sourcebridge_host "localhost" // Define whether Sourcebridge should print incoming messages. // - // Default: "1" sm_sourcebridge_incoming "1" // Define whether Sourcebridge should send server chat messages. // - // Default: "1" sm_sourcebridge_outgoing "1" // Define whether the plugin should add a zero-width space after the @ sign in the messages. // - // Default: "1" sm_sourcebridge_outgoing_chat_zwsp_at "1" // Define whether the plugin should output the map name at the start of the game. // - // Default: "0" sm_sourcebridge_outgoing_display_map "0" // Define whether the plugin should output join messages. // - // Default: "1" sm_sourcebridge_outgoing_join "1" // Define whether the plugin should output leave messages. // - // Default: "1" sm_sourcebridge_outgoing_quit "1" // URL pointing to the avatar system messages should use. It takes effect after restart. // - // Default: "" sm_sourcebridge_outgoing_system_avatar "" // The name of system messages whenever they get send to the Matterbridge instance (join/leaves, kills, etc). It takes effect after restart. // - // Default: "Server" sm_sourcebridge_outgoing_system_name "Server" // Port on where your Matterbridge instance is running. // - // Default: "1337" sm_sourcebridge_port "1337" // Protocol of your Matterbridge instance. (http/https) // - // Default: "http" sm_sourcebridge_protocol "http" // Define how much Sourcebridge should wait before querying new incoming messages. It takes effect after restart. // - // Default: "3" sm_sourcebridge_retry_delay "3" // Token for Steam API queries. Required for player avatars. // - // Default: "" sm_sourcebridge_steam_token "" // Token of your Matterbridge gateway. // - // Default: "" sm_sourcebridge_token ""

    Change Log
    • 0.9.2 BETA
      • Request handles are no longer freed. Fixes an error in the plugin.
    • 0.9.1 BETA
      • Bots no longer trigger join/leave messages
    • 0.9 BETA
      • Public Beta Release

    Credits
    • 42wim
      Main developer of Matterbridge.
    • Michael Wieland
      His MatterBukkit plugin for Minecraft inspired me to create MatterAMXX and this.
    Attached Files
    File Type: sp Get Plugin or Get Source (sourcebridge.sp - 101 views - 14.2 KB)
    __________________

    Last edited by gabuch2; 05-24-2022 at 09:20. Reason: 0.9.1 BETA released
    gabuch2 is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 04:01.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode