معرفی شرکت ها


botdash.py-dev-1.0.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

API wrapper for botdash.pro
ویژگی مقدار
سیستم عامل -
نام فایل botdash.py-dev-1.0.2
نام botdash.py-dev
نسخه کتابخانه 1.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Jetnox
ایمیل نویسنده support@jetnox.org
آدرس صفحه اصلی https://github.com/jetnox/botdash-py
آدرس اینترنتی https://pypi.org/project/botdash.py-dev/
مجوز MIT
# BotDash.py https://botdash.pro --- ## Get started ```py import discord import botdash import time DISCORD_TOKEN = "haha" BOTDASH_TOKEN = "you thought" intents = discord.Intents.all() client = discord.Client(intents=intents) dashboard = botdash.Client( token=BOTDASH_TOKEN, return_value=True, debug=True, client=client ) @dashboard.on("change") async def change(data): # THIS SHOULD ALWAYS BE ASYNC!!! #{ key, value, oldValue, guild } # Key is the key / database ID of the setting. # Value is the new value of the setting. # oldValue is the old value of the setting. # guild is the guild ID of the guild the setting was changed for. return @dashboard.on("trigger") async def trigger(data): # THIS SHOULD ALWAYS BE ASYNC!!! # { name, currentSave, guildId } # Name is the key / database ID of the setting. # currentSave is the current state/save of the page | [ { Key: Value }, { Key: Value } ] # guildId is the guild ID of the guild the trigger is for. return @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') @client.event async def on_message(msg): if msg.author == client.user: return if msg.content.startswith('!get'): start_time = time.time() value = dashboard.get(msg.guild.id, "prefix") end_time = time.time() start_time_two = time.time() valueTwo = dashboard.getUsingRest(msg.guild.id, "prefix") end_time_two = time.time() await msg.channel.send(f"```Prefix NEW Method: {value} - Time: {end_time - start_time}\nPrefix OLD Method: {valueTwo} - Time: {end_time_two - start_time_two}```") if msg.content.startswith('!set'): dashboard.set(msg.guild.id, "prefix", msg.content[4:]) await msg.channel.send(f"Set prefix to {msg.content[4:]}") client.run(DISCORD_TOKEN) ``` ### Old Example ```py from botdash import Client dash = Client( token="TOKEN_HERE", return_value=False, # Set to true debug=False # Use this for debugging ) val = dash.get("GUILD_ID_HERE", "DATABASE_ID_HERE").value # REMOVE .value if "return_value" is True print(val) ```


نیازمندی

مقدار نام
- setuptools
- requests
- six
- ujson
- python-socketio


نحوه نصب


نصب پکیج whl botdash.py-dev-1.0.2:

    pip install botdash.py-dev-1.0.2.whl


نصب پکیج tar.gz botdash.py-dev-1.0.2:

    pip install botdash.py-dev-1.0.2.tar.gz