From 90f8d0dce6d74fefb6fd263a31af4480b1872db5 Mon Sep 17 00:00:00 2001 From: Fotoente Date: Sat, 23 Jul 2022 11:54:09 +0200 Subject: [PATCH] Small update of the syntax for `update.py` --- rdbot.py | 1 + update.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rdbot.py b/rdbot.py index 1964b2d..17b7dcb 100755 --- a/rdbot.py +++ b/rdbot.py @@ -24,6 +24,7 @@ except (TypeError, ValueError, roboduck.configparser.NoOptionError): if not check_multi_arg(url, token): raise Exception("Misskey instance and token are required.") + class MyBot(commands.Bot): def __init__(self): diff --git a/update.py b/update.py index 635eece..1bc9982 100755 --- a/update.py +++ b/update.py @@ -1,3 +1,3 @@ -from roboduck import * +import roboduck -update() +roboduck.update()