|
@@ -1,7 +1,7 @@
|
|
|
from pyrogram import filters
|
|
from pyrogram import filters
|
|
|
from pyrogram.types import Message
|
|
from pyrogram.types import Message
|
|
|
|
|
|
|
|
-from wbb import app, app2, SUDOERS, USERBOT_PREFIX
|
|
|
|
|
|
|
+from wbb import SUDOERS, USERBOT_PREFIX, app, app2
|
|
|
|
|
|
|
|
__MODULE__ = "Dice"
|
|
__MODULE__ = "Dice"
|
|
|
__HELP__ = """
|
|
__HELP__ = """
|
|
@@ -9,10 +9,10 @@ __HELP__ = """
|
|
|
Roll a dice.
|
|
Roll a dice.
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
|
|
+
|
|
|
@app2.on_message(
|
|
@app2.on_message(
|
|
|
- filters.command("dice", prefixes=USERBOT_PREFIX)
|
|
|
|
|
- & filters.user(SUDOERS)
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ filters.command("dice", prefixes=USERBOT_PREFIX) & filters.user(SUDOERS)
|
|
|
|
|
+)
|
|
|
@app.on_message(filters.command("dice"))
|
|
@app.on_message(filters.command("dice"))
|
|
|
async def throw_dice(client, message: Message):
|
|
async def throw_dice(client, message: Message):
|
|
|
six = (message.from_user.id in SUDOERS) if message.from_user else False
|
|
six = (message.from_user.id in SUDOERS) if message.from_user else False
|