Add modular Roblox buyer bot and documentation
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from aiogram import Bot
|
||||
|
||||
_bot: Bot | None = None
|
||||
_log_bot: Bot | None = None
|
||||
|
||||
|
||||
def set_bots(bot: Bot, log_bot: Bot | None = None) -> None:
|
||||
global _bot, _log_bot
|
||||
_bot = bot
|
||||
_log_bot = log_bot
|
||||
|
||||
|
||||
def get_bot() -> Bot | None:
|
||||
return _bot
|
||||
|
||||
|
||||
def get_log_bot() -> Bot | None:
|
||||
return _log_bot
|
||||
Reference in New Issue
Block a user