From eb03ab8ff6dcd642c1b296db77725f230caa29eb Mon Sep 17 00:00:00 2001 From: oloturia <5429234+oloturia@users.noreply.github.com> Date: Sat, 30 Oct 2021 17:37:24 +0200 Subject: [PATCH 1/3] fixed first column --- damastodon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/damastodon.py b/damastodon.py index fb69ccd..33f3e63 100755 --- a/damastodon.py +++ b/damastodon.py @@ -15,8 +15,8 @@ save_position = "/tmp/" CLEANR = re.compile('<.*?>') botname = "@damastodon " -firow = "🔠1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣\n" -colsx = "🇦 🇧 🇨 🇩 🇪 🇫 🇬 🇭 " +firow = " 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣\n" +colsx = "🇦🇧🇨🇩🇪🇫🇬🇭" def cleanHTML(raw): cleanText = re.sub(CLEANR, '',raw) From d8ee04b76fbb4881f541d564f0d2ebfa6462acdc Mon Sep 17 00:00:00 2001 From: oloturia <5429234+oloturia@users.noreply.github.com> Date: Sat, 30 Oct 2021 17:40:24 +0200 Subject: [PATCH 2/3] fixed first column again --- damastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damastodon.py b/damastodon.py index 33f3e63..92b2a48 100755 --- a/damastodon.py +++ b/damastodon.py @@ -15,7 +15,7 @@ save_position = "/tmp/" CLEANR = re.compile('<.*?>') botname = "@damastodon " -firow = " 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣\n" +firow = "🇻1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣\n" colsx = "🇦🇧🇨🇩🇪🇫🇬🇭" def cleanHTML(raw): From fa8d751b7c97f9ca0cacdc9a0ccbc3f70d512652 Mon Sep 17 00:00:00 2001 From: oloturia <5429234+oloturia@users.noreply.github.com> Date: Sat, 30 Oct 2021 18:00:13 +0200 Subject: [PATCH 3/3] forgot direct messages in some places --- damastodon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/damastodon.py b/damastodon.py index 92b2a48..ace2ecb 100755 --- a/damastodon.py +++ b/damastodon.py @@ -56,7 +56,7 @@ def check_message(notification): try: challenger = notification["status"]["mentions"][1]["acct"] except: - mastodon.status_post("Hello @"+account+" \n your request is not valid") + mastodon.status_post("Hello @"+account+" \n your request is not valid",visibility="direct") return os.symlink(save_position+challenger,save_position+account) board = dama.init_board() @@ -83,7 +83,7 @@ def check_message(notification): if content.lower() == "quit": os.remove(save_position+black[1:]) os.remove(save_position+white[1:]) - mastodon.status_post(black+" "+white+" the match was cancelled.") + mastodon.status_post(black+" "+white+" the match was cancelled.",visibility="direct") return if (black == "@"+account and turn == 1) or (white == "@"+account and turn == 0): board = dama.valid_move(content.lower(),turn,board,inversion=True)