MCPcopy Create free account

hub / github.com/ChenYCL/discord-send / functions

Functions14 in github.com/ChenYCL/discord-send

↓ 2 callersMethodget_account_id
(self, token, proxy)
discord.py:156
↓ 2 callersFunctionget_discord_messages
收集要发送的信息,需要从第一条数据开始
formatdata.py:64
↓ 2 callersFunctionmy_format_data
组装数据 Attributes: start_num:开始账号 end_num:结束账号 is_bitbrowser:是否为比特浏览器数据 True:比特浏览器 False:ads浏览器
formatdata.py:12
↓ 2 callersFunctionproject_info
收集到的项目的信息
formatdata.py:47
↓ 2 callersMethodsend_message
发送或者回复聊天 如何确定发送还是回复。初始肯定是发送,给reply_message_id先赋值空字符串 回复时如何得到回复id 如何确定自己的不回复 如何确定token和proxy的关联性 Attributes:
discord.py:101
↓ 1 callersFunctiondingding_notice
钉钉提醒
utils.py:60
↓ 1 callersMethodget_account_id_with_retry
(self, token, proxy, max_retries=5)
discord.py:86
↓ 1 callersMethodis_reply
回复概率。1表示回复消息,0表示发送消息,0.1-0.9表示回复消息的概率
discord.py:171
↓ 1 callersMethodlistening
信息监听,及时处理,防止被判定为机器人
discord.py:182
Methodchat
发送聊天 Attributes: account_info:discord账户的token和proxy from_channel_list:获取消息的频道列表 to_channel:发送消息的频道
discord.py:209
Methodget_message_from_channel
原理从你加入的channel_lis里选一个channel,获取到历史消息保存到文件中备用. 熊市消息少,可能很久才有一条消息,api一直请求会超出限制。实际这个功能是在牛市刷项目用的 Attributes: token:discord的账号
discord.py:44
Functionget_token
获取登录的token
discord.py:13
Functiontry_except_code
处理python的异常,以及requests请求异常。在需要的函数名前面使用装饰器语法@try_except_code调用 捕获requests异常时,需要在使用地方的响应后面加一句response.raise_for_status()来检查响应的状态码,如果状态码表明请求失败,则抛出一个H
utils.py:10
Functionwrapper
(*args, **kwargs)
utils.py:15