aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--apioforum/webhooks.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/apioforum/webhooks.py b/apioforum/webhooks.py
index 7740c87..f7387be 100644
--- a/apioforum/webhooks.py
+++ b/apioforum/webhooks.py
@@ -164,18 +164,13 @@ class DiscordWebhook(WebhookType):
@webhook_type("apionet")
class ApionetWebhook(WebhookType):
- # this is generally quite awful
-
- sockpath = "/srv/apiobot/bees.sock"
- #sockpath = "/home/rebecca/programming/apiobot/bees.sock"
MAXMSGLEN = 420
- # doesn't use url or anything
+ # using 'url' as path of socket to send to.
def send(self,payload):
- # this is possibly terrible
import socket
s = socket.socket(socket.AF_UNIX,socket.SOCK_DGRAM)
- s.sendto(payload.encode("utf-8"),self.sockpath)
+ s.sendto(payload.encode("utf-8"),self.url)
s.close()
def append_url(self,rest,url):