一个简单易用的交互式会话和分页器,带有discord.py的自定义按钮。
buttons的Python项目详细描述
一个简单易用、高度可定制的交互式会话和分页器,可用于discord.py.
仍处于alpha阶段,并可快速制作。可以通过discord提出建议。
support
----------
有关使用按钮的支持,请加入官方的“支持服务器”
<;http://discord.gg/jhw28zp>;``uon`discord<;https://discordapp.com/>;`.
安装
代码::sh
py-version-m pip安装按钮
**linux**
…代码::sh
python3-m pip安装按钮
代码::py
来自discord.ext导入命令
来自discord.ext导入按钮
ctx):
等待ctx.send('此按钮发送愚蠢的消息!但是可以编程来做更多的事情。')
@button.button(emoji='my_custom_emoji:1234567890')
async def silly_button(self,ctx):
等待ctx.send('beep boop…')
bot=commands.bot(command_prefix='??')
@bot.command()
async def test(ctx):
pagey=mypaginator(title='silly paginator',colour=0xc67862,embed=true,timeout=90,use_defaults=true,
entries=[1,2,3],length=1,format='**')
等待分页。开始(ctx)
@bot.event
async def on_ready():
print('ready!')
bot.run('token')
仍处于alpha阶段,并可快速制作。可以通过discord提出建议。
support
----------
有关使用按钮的支持,请加入官方的“支持服务器”
<;http://discord.gg/jhw28zp>;``uon`discord<;https://discordapp.com/>;`.
安装
代码::sh
py-version-m pip安装按钮
**linux**
…代码::sh
python3-m pip安装按钮
代码::py
来自discord.ext导入命令
来自discord.ext导入按钮
ctx):
等待ctx.send('此按钮发送愚蠢的消息!但是可以编程来做更多的事情。')
@button.button(emoji='my_custom_emoji:1234567890')
async def silly_button(self,ctx):
等待ctx.send('beep boop…')
bot=commands.bot(command_prefix='??')
@bot.command()
async def test(ctx):
pagey=mypaginator(title='silly paginator',colour=0xc67862,embed=true,timeout=90,use_defaults=true,
entries=[1,2,3],length=1,format='**')
等待分页。开始(ctx)
@bot.event
async def on_ready():
print('ready!')
bot.run('token')