-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# DiscordTalker_V2.0 | ||
2 Bots talk || 两人互答 | ||
|
||
|
||
本例实现了2个discord账户的相互回复,一个实例需要能登录2个账号。(可以复制多份程序到不同的文件夹,以实现“多账号/多频道”发送) | ||
本程序仅供编程学习研究,切勿用于其他用途。如因使用不当造成任何损失,与本程序及作者无关。 | ||
程序使用说明: | ||
1、获取Discord账号的登录令牌(即“Token”),可参考该视频:https://www.youtube.com/watch?v=WWHZoa0SxCc | ||
|
||
2、获取想要发送信息的服务器号码与频道号码。方法很多,最简单的办法:自己的账号要先加入该Discord服务器,然后点击想要发送信息的频道,在浏览器地址栏内找到倒数第二段数字即为服务器号码。最后一段数字即为频道号码。 | ||
|
||
3、将前两步获取的信息填入配置文件 botConfig.ini ,设置好机器人对话的延时,并保存. | ||
|
||
4、在talk_list_1.txt 内输入水群信息并保存,每句一行,最好上下文连贯,因为需要对话. | ||
|
||
5、打开Discord Talker, 点击“启动”即可. | ||
|
||
6、如需要设置代理,参考V1.0内的操作说明。因配置方面改动较少,本例不再额外提供说明书 | ||
|
||
|
||
如需打包: | ||
|
||
pip install pyinstaller | ||
|
||
pyinstaller -F -i favicon.ico discordTalker_GUI.py | ||
|
||
在dist文件夹内会生成 discordTalker_GUI.exe ,然后将 botConfig.ini,talk_list_1.txt,logo.png,favicon.ico 拷贝至dist文件夹。 设置完毕后即可双击使用。 |