我正在研究一個(gè)不和諧的命令,它將整個(gè)文本文件逐行寫入聊天中,我嘗試制作它,但不知何故它不能正常工作。 file = open('story.txt', 'r') @client.command(alisases = ['readfile']) async def story(ctx): for x in file: await ctx.send(file)它運(yùn)行,但只寫這些行:<_io.TextIOWrapper name='story.txt' 模式='r' 編碼='cp1250'>
Discord Bot 逐行發(fā)送文本文件
繁星點(diǎn)點(diǎn)滴滴
2022-11-09 16:43:22