Author Topic: DP2 Discord Connector  (Read 3886 times)

x_chow

  • PGP
  • Posts: 2
DP2 Discord Connector
« on: June 22, 2019, 12:33:51 PM »
Hello!

Introduction

Today I am pleased to release the first version of my script, which was done in collaboration with whoa.
It routes ingame chat to discord and vice versa.

You need to have a discord bot added to a discord server in order to use it.

WARNING: it does not work with the current pip-provided version of dplib. Also, it does not work with python >= 3.7
You have to wait a few weeks until the new version of dplib gets released.

Feature details

  • - displays ingame messages in a specific discord channel
  • - displays discord messages ingame
  • - neat colors using syntax highlighting
  • - no abuse / spam prevention system yet

Future plans

I plan to make a version which interconnects ingame chat and multiple discord channels located on different servers.
For this however, it is required that everyone uses the same discord bot. This is a broader topic, and is harder to achieve. I am open to suggestions.


Screenshots



Source / download: https://github.com/aapokaapo/DP2scripts/tree/master/DP2-Discord-Connector

Enjoy.

3lf

  • Map Committee
  • VM-68
  • Posts: 121
Re: DP2 Discord Connector
« Reply #1 on: June 22, 2019, 12:42:43 PM »
Nice!

Squeeze

  • 68 Carbine
  • Posts: 406
Re: DP2 Discord Connector
« Reply #2 on: July 14, 2019, 04:00:59 PM »
This is really nice and I would use it, but I don't like one thing. That it can get really chaotic ingame if you see all messages. If it could show only messages sent to you, that would be ideal.

mRokita

  • Autococker
  • Posts: 598
Re: DP2 Discord Connector
« Reply #3 on: October 22, 2019, 02:13:14 PM »
Nice one!
I will try to find some time to release an updated version of DPLib.
What's the problem with python >= 3.7?
Is it on dplib's part?

x_chow

  • PGP
  • Posts: 2
Re: DP2 Discord Connector
« Reply #4 on: February 14, 2020, 06:46:13 AM »
Sorry for being late.
Apparently python 3.7 introduced some backwards incompatible changes in async.
I am not a python expert, I think this is the relevant page: https://docs.python.org/3/whatsnew/3.7.html