From 2ab74a4fff525675f87828bd23165be84484df77 Mon Sep 17 00:00:00 2001 From: "yakumo.izuru" Date: Wed, 21 Feb 2024 22:07:27 +0000 Subject: [PATCH] Adding commands have to be done with functions? Also add a run.sh script Signed-off-by: Izuru Yakumo git-svn-id: file:///srv/svn/repo/chen/trunk@32 32723744-9b23-0b4a-b1da-9b2e968f9461 --- main.py | 2 -- run.sh | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 run.sh diff --git a/main.py b/main.py index dbc17e4..be11945 100644 --- a/main.py +++ b/main.py @@ -149,8 +149,6 @@ class ChenBot(ClientXMPP): return if "#nospoil" in body: return - if "!repo" in body: - msg.reply("https://git.chaotic.ninja/usr/yakumo_izuru/chen\n").send() for u in urls: if u in self.messages[sender]["links"]: continue diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..146b4fa --- /dev/null +++ b/run.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# $TheSupernovaDuo$ +echo "Starting bot..." +python-3.9 main.py 2>chen.log