使用ffmpeg、youtube-dl、scrapers等独立的不和谐机器人平台
drunkbot的Python项目详细描述
#醉汉
###简介 醉汉机器人是一个完整的python跨平台不协调机器人,它有很多功能,甚至可以添加自己的功能。 当前可用的选项有YouTube下载(视频和音频)、播放列表、音频Web scraper、图像Web scraper, 播放列表和歌曲控件。memes…随机…上传和下载。可以添加的自定义命令,一些简单的 已提供数学命令
现在支持简单的命令 使用醉汉机器人并将自己配置的命令添加到commands.txt的用户 完全不需要连接discord.py api
##安装
对于大多数用户来说,安装醉汉机器人是很容易的。这是你需要做的。 first确保您的计算机上安装了python3.5。有的已经有了 在其他人身上,你可能需要谷歌如何安装它。second还要确保安装了pip。
linux用户确保安装了(discord.py说的)这两个包 -libffi dev(或某些系统上的libffi devel) -Python3.5-dev
####步骤1
将下面的内容复制并粘贴到您的终端中
python3.5 -m pip install https://github.com/smerkousdavid/drunkbot/archive/master.zip#egg=drunkbot –upgrade
####第2步
使用您的帐户/应用程序设置机器人程序
如果您已经有一个bot(应用程序)和一个token id,只需这样做
drunkbot –token ‘TOKEN.ID’
这将自动设置醉汉机器人与您的客户端令牌ID一起运行(此命令不会启动服务器继续读取)
如果没有具有bot用户的应用程序
- Go here (login): https://discordapp.com/developers/applications/me
- Press new application
- Put a picture and name for the application (Description would be nice)
- Click “Create bot user” and click “Yes”
- Click “Show token on the bot”
- Copy and paste the token into the command above
####第3步
将bot添加到服务器
- Go here (login): https://discordapp.com/developers/applications/me
- Click on your previous application
- Copy and paste the client id into the url below (remove the < and > when pasting)
- https://discordapp.com/oauth2/authorize?client_id=<CLIENTID>&scope=bot&permissions=536083519
- Open that url (You should see a connect to discord window)
- Click select a server then click on your server
- Press the big blue authorize button
- You’re done
##用法
现在要实际运行醉汉机器人
要查看可用的命令行选项,请运行
drunkbot -h
下面是启动醉酒机器人服务器的示例 带有启动消息
drunkbot -s “I’m booted baby!”
####不和谐入门
在机器人所在的服务器上发送此消息
!help advanced
我用醉汉机器人(关键字然后你想用搜索做什么)在youtube上搜索的例子
!youtube karmin flex zone describe
现在如果我想播放那首歌
!youtube karmin flex zone play
对那首歌很恼火,你为什么不停下来…
!audio pause
等等,服务器上有什么存货
!audio list
让我给它添加一些内容
!youtube pharrell marilyn download or !audio download william
我讨厌那些被吸的人
!audio delete Pharrel all
我现在想看看…
!random
你想学法语吗?
!youtube https://www.youtube.com/watch?v=5SM-nA5l2HU play
相信我还有更多的命令我现在只是在玩 看看!所有命令的当前列表的帮助
##许可证 这是根据通用公共许可证(v3)授权的 有关详细信息,请查看许可证文件