|
|
@ -13,9 +13,12 @@ config.read(Path(__file__).parent.joinpath('bot.cfg'))
|
|
|
|
uri = "https://" + config.get("misskey", "instance_write")
|
|
|
|
uri = "https://" + config.get("misskey", "instance_write")
|
|
|
|
token = config.get("misskey", "token")
|
|
|
|
token = config.get("misskey", "token")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
contentwarning = config.get("misskey", "cw")
|
|
|
|
contentwarning = config.get("misskey", "cw")
|
|
|
|
if contentwarning.lower() == "none":
|
|
|
|
if contentwarning.lower() == "none":
|
|
|
|
contentwarning = None
|
|
|
|
contentwarning = None
|
|
|
|
|
|
|
|
except (TypeError, ValueError):
|
|
|
|
|
|
|
|
contentwarning = None
|
|
|
|
|
|
|
|
|
|
|
|
class MyBot(commands.Bot):
|
|
|
|
class MyBot(commands.Bot):
|
|
|
|
text_model = None # Holds the markov object, so it won't be recreated everytime
|
|
|
|
text_model = None # Holds the markov object, so it won't be recreated everytime
|
|
|
|