معرفی شرکت ها


discordbot-sync-1.2.2


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

A wrapper for the Discord API that doesn't require you to use asyncio
ویژگی مقدار
سیستم عامل -
نام فایل discordbot-sync-1.2.2
نام discordbot-sync
نسخه کتابخانه 1.2.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده gabemillikan
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/GabeMillikan/discordbot-sync
آدرس اینترنتی https://pypi.org/project/discordbot-sync/
مجوز -
# Discordbot This package provides an interface to the RESTful and websocket Discord API so users don't have to worry about rate limits, asyncio, or error handling. It's as simple as: ```py import discordbot as discord bot = discord.Bot("my_api_token") def on_message(raw_event, message): print(message.author, "sent a message in", message.channel, "which said", message.content) if message.content == "!ping": bot.send_message(message.channel, "Pong!") bot.on_event(discord.event.guild_message_sent, on_message) bot.run() ``` discordbot also provides a simple way to add commands to your bot ```py import discordbot as discord bot = discord.Bot("my_api_token") role_moderator = '00000000000000' # the id of the role which is required to use the kick command def cmd_kick(message, member, reason): bot.kick(message.guild, member, reason) bot.send_message(message.channel, "Member %s kicked. They are allowed to re-join. Ban them if you do not want this behavior." % member, reply_to = message, reply_ping = False) bot.register_command("kick", "Temporarily remove someone from the server", cmd_kick, required_role = role_moderator, args = [ { "name": "member", "description": "The member to kick", "type": "user" }, { "name": "reason", "description": "Reason for kick", "type": "string", "default": None } ]) bot.command_prefix = "!" bot.register_default_commands() # (optional) adds !cmds and !ping bot.run() ``` for more examples, please see this [project on github](https://github.com/GabeMillikan/discordbot-sync/tree/main/examples)


نیازمندی

مقدار نام
- websockets
- requests
- psutil


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl discordbot-sync-1.2.2:

    pip install discordbot-sync-1.2.2.whl


نصب پکیج tar.gz discordbot-sync-1.2.2:

    pip install discordbot-sync-1.2.2.tar.gz