Giter Site home page Giter Site logo

gd's People

Contributors

curtinlv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gd's Issues

安装好后登陆出现以下

The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions (caused by InvokeWithLayerRequest(InitConnectionRequest(GetConfigRequest)))

向bot发送关注有礼的环境变量后,运行脚本报错

运行环境是centos7,青龙v2.9.3
具体报错信息:
您提供了1个的特效关注有礼店铺活动

(node:8061) UnhandledPromiseRejectionWarning: Error: Cannot find module 'tough-cookie'
Require stack:

  • /ql/repo/gd/jk_script/pkc_txgzyl.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
    at Function.Module._load (internal/modules/cjs/loader.js:745:27)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.initGotEnv (/ql/repo/gd/jk_script/pkc_txgzyl.js:645:3814)
    at Object.post (/ql/repo/gd/jk_script/pkc_txgzyl.js:645:5679)
    at /ql/repo/gd/jk_script/pkc_txgzyl.js:603:7
    at new Promise ()
    at TotalBean (/ql/repo/gd/jk_script/pkc_txgzyl.js:589:10)
    at /ql/repo/gd/jk_script/pkc_txgzyl.js:69:13
    (Use node --trace-warnings ... to show where the warning was created)
    (node:8061) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
    (node:8061) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

python3 -m jbot

python3 -m jbot
出现这个错误

Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/ql/jbot/init.py", line 90, in
jdbot = TelegramClient("bot", API_ID, API_HASH, connection=connectionType, proxy=proxy).start(bot_token=TOKEN)
File "/usr/local/lib/python3.10/site-packages/telethon/client/auth.py", line 133, in start
else self.loop.run_until_complete(coro)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/site-packages/telethon/client/auth.py", line 140, in _start
await self.connect()
File "/usr/local/lib/python3.10/site-packages/telethon/client/telegrambaseclient.py", line 525, in connect
if not await self._sender.connect(self._connection(
File "/usr/local/lib/python3.10/site-packages/telethon/network/mtprotosender.py", line 127, in connect
await self._connect()
File "/usr/local/lib/python3.10/site-packages/telethon/network/mtprotosender.py", line 253, in _connect
raise ConnectionError('Connection to Telegram failed {} time(s)'.format(self._retries))
ConnectionError: Connection to Telegram failed 5 time(s)

[已解决]首次启动报错,不知道该怎么解决

asyncio ERROR [default_exception_handler] Task exception was never retrieved
future: <Task finished name='Task-10' coro=<hello() done, defined at /ql/data/jbot/main.py:71> exception=ValueError('Could not find the input entity for PeerUser(user_id=2096307281) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.')>
Traceback (most recent call last):
File "/ql/data/jbot/main.py", line 76, in hello
await jdbot.send_message(chat_id, f'{str(hello_word)}\n\n\t{info}', link_preview=False)
File "/usr/lib/python3.9/site-packages/telethon/client/messages.py", line 810, in send_message
entity = await self.get_input_entity(entity)
File "/usr/lib/python3.9/site-packages/telethon/client/users.py", line 466, in get_input_entity
raise ValueError(
ValueError: Could not find the input entity for PeerUser(user_id=2096307281) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.

不知道启动为啥报错

2022-04-24 20:49:34,044 asyncio ERROR [default_exception_handler] Task exception was never retrieved future: <Task finished name='Task-11' coro=<hello() done, defined at /ql/jbot/main.py:71> exception=ValueError('Could not find the input entity for PeerUser(user_id=1046689044) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.')> Traceback (most recent call last): File "/ql/jbot/main.py", line 76, in hello await jdbot.send_message(chat_id, f'{str(hello_word)}\n\n\t{info}', link_preview=False) File "/usr/lib/python3.8/site-packages/telethon/client/messages.py", line 810, in send_message entity = await self.get_input_entity(entity) File "/usr/lib/python3.8/site-packages/telethon/client/users.py", line 466, in get_input_entity raise ValueError( ValueError: Could not find the input entity for PeerUser(user_id=1046689044) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.Screenshot_2022-04-24-21-19-07-08_61c78dc80ee02b53007c815fefe993e3.jpg

pm2运行错误了

[PM2][WARN] Applications jbot not running, starting...
[PM2][ERROR] Error: Script not found: /ql/python
大佬这个错误怎么解决

每次青龙重启以后 机器人启动失败

每次青龙重启以后 日志加载成功了,但是机器人启动失败,只能青龙重启了 先进容器 停机jbot 然后删除jbot ,在cd /ql/jbot 重新启动,我直接pm2 启动提示我找不到文件

一样启动bot报错

root@ql:/ql $ python3 -m jbot
/usr/bin/python3: No module named jbot.main; 'jbot' is a package and cannot be directly executed

监控KR开卡时的变量

首先非常感谢大佬的脚本,真的很好用。

这里反馈一个小问题,监控KR开卡时,输出变量时由于两个''的关系,输出的变量成了
export VENDER_ID="1000094033"

这个是不是要去USER.PY中修改?

为什么提示缺少这个data里的js呢,需要运行的js已经复制到ql/scripts路径下了

JD_News, [2022/3/28 0:08]
【替换】 转盘抽奖 环境变量成功
M_WX_LUCK_DRAW_URL="https://lzkj-isv.isvjcloud.com/lzclient/1648397227906/cjwx/common/entry.html?activityId=90fdad31e1c045b38356334e5872dbc4&gameType=wxTurnTable&"

JD_News, [2022/3/28 0:08]

开始执行... 2022-03-28 00:08:09

node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module '/ql/data/scripts/m_jd_wx_luckDraw.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v17.7.2

执行结束... 2022-03-28 00:08:10 耗时 1 秒

查询资产报错

试用chart和bean查询资产要不报错,要不没有反应;没反应须要重启bot,不然bot使用别的命令也没有办法使用。
chart报错如下图
image

重装出错,不知道什么原因

root@qinglong:/ql/data/jbot $ tail -100f /ql/data/log/bot/run.log
2022-05-21 23:34:19,424 telethon.network.mtprotosender INFO [_connect] Connecting to 149.154.175.60:443/TcpFull...
2022-05-21 23:34:19,451 telethon.network.mtprotosender INFO [_connect] Connection to 149.154.175.60:443/TcpFull complete!
2022-05-21 23:34:19,578 jbot INFO [] 加载 user 模块
2022-05-21 23:34:19,578 jbot INFO [load_module] 加载成功 login
2022-05-21 23:34:19,579 jbot INFO [load_module] 加载成功 utils
2022-05-21 23:34:19,694 jbot INFO [load_module] 加载成功 del_msg
2022-05-21 23:34:19,695 jbot INFO [load_module] 加载成功 reply_msg
2022-05-21 23:34:19,696 jbot INFO [load_module] 加载成功 del_all_msg
2022-05-21 23:34:19,697 jbot INFO [load_module] 加载成功 usermsg
2022-05-21 23:34:19,712 jbot INFO [load_module] 加载成功 user
2022-05-21 23:34:19,712 jbot INFO [] 加载 bot 模块
2022-05-21 23:34:19,713 jbot INFO [load_module] 加载成功 start
2022-05-21 23:34:19,715 jbot INFO [load_module] 加载成功 quickchart
2022-05-21 23:34:19,719 jbot INFO [load_module] 加载成功 cron
2022-05-21 23:34:19,721 jbot INFO [load_module] 加载成功 node
2022-05-21 23:34:19,722 jbot INFO [load_module] 加载成功 auth
2022-05-21 23:34:19,763 jbot INFO [load_module] 加载成功 bean
2022-05-21 23:34:19,764 jbot INFO [load_module] 加载成功 setshort
2022-05-21 23:34:19,765 jbot INFO [load_module] 加载成功 utils
2022-05-21 23:34:19,768 jbot INFO [load_module] 加载成功 setting
2022-05-21 23:34:19,770 jbot INFO [load_module] 加载成功 snode
2022-05-21 23:34:19,772 jbot INFO [load_module] 加载成功 short
2022-05-21 23:34:19,775 jbot INFO [load_module] 加载成功 editfile
2022-05-21 23:34:19,775 jbot INFO [load_module] 加载成功 beandata
2022-05-21 23:34:19,778 jbot INFO [load_module] 加载成功 getfile
2022-05-21 23:34:19,778 jbot INFO [load_module] 加载成功 update
2022-05-21 23:34:19,780 jbot INFO [load_module] 加载成功 chart
2022-05-21 23:34:19,781 jbot INFO [load_module] 加载成功 help
2022-05-21 23:34:19,783 jbot INFO [load_module] 加载成功 forward
2022-05-21 23:34:19,784 jbot INFO [load_module] 加载成功 up
2022-05-21 23:34:19,786 jbot INFO [load_module] 加载成功 sendfile
2022-05-21 23:34:19,787 jbot INFO [load_module] 加载成功 cmd
2022-05-21 23:34:19,790 jbot INFO [load_module] 加载成功 qlenv
2022-05-21 23:34:19,790 jbot INFO [] 加载 diy 模块
2022-05-21 23:34:19,799 jbot INFO [load_module] 加载成功 addrepo
2022-05-21 23:34:19,801 jbot INFO [load_module] 加载成功 addexport
2022-05-21 23:34:19,805 jbot INFO [load_module] 加载成功 wskey
2022-05-21 23:34:19,807 jbot INFO [load_module] 加载成功 upGdJk
2022-05-21 23:34:19,808 jbot INFO [load_module] 加载成功 utils
2022-05-21 23:34:19,809 jbot INFO [load_module] 加载成功 restart
2022-05-21 23:34:19,810 jbot INFO [load_module] 加载成功 getbotlog
2022-05-21 23:34:19,811 jbot INFO [load_module] 加载成功 cxjc
2022-05-21 23:34:19,813 jbot INFO [load_module] 加载成功 cxjc_kill
2022-05-21 23:34:19,817 jbot INFO [load_module] 加载成功 checkcookie
2022-05-21 23:34:19,819 jbot INFO [load_module] 加载成功 autoblock
2022-05-21 23:34:19,821 jbot INFO [load_module] 加载成功 diy
2022-05-21 23:34:19,822 jbot INFO [load_module] 加载成功 example
2022-05-21 23:34:19,825 jbot INFO [load_module] 加载成功 editexport
2022-05-21 23:34:19,826 jbot INFO [load_module] 加载成功 clean
2022-05-21 23:34:19,835 jbot INFO [load_module] 加载成功 tempblockcookie
2022-05-21 23:34:19,838 jbot INFO [load_module] 加载成功 download
2022-05-21 23:34:19,906 asyncio ERROR [default_exception_handler] Task exception was never retrieved
future: <Task finished name='Task-11' coro=<hello() done, defined at /ql/data/jbot/main.py:71> exception=ValueError('Could not find the input entity for PeerUser(user_id=12345678) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.')>
Traceback (most recent call last):
File "/ql/data/jbot/main.py", line 76, in hello
await jdbot.send_message(chat_id, f'{str(hello_word)}\n\n\t{info}', link_preview=False)
File "/usr/lib/python3.9/site-packages/telethon/client/messages.py", line 810, in send_message
entity = await self.get_input_entity(entity)
File "/usr/lib/python3.9/site-packages/telethon/client/users.py", line 466, in get_input_entity
raise ValueError(
ValueError: Could not find the input entity for PeerUser(user_id=12345678) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.

使用该脚本报错

大佬 使用该脚本安装的时候报以下错误

ERROR: unable to select packages:
  bizCode (no such package):
    required by: world[bizCode]
  bizMsg (no such package):
    required by: world[bizMsg]
  lxml (no such package):
    required by: world[lxml]
ERROR: unable to select packages:
  bizCode (no such package):
    required by: world[bizCode]
  bizMsg (no such package):
    required by: world[bizMsg]
  lxml (no such package):
    required by: world[lxml]

求助大佬:启动机器人报错

root@550fdc2698ca:/ql $ python3 -m jbot
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/ql/jbot/init.py", line 1, in
from telethon import TelegramClient, connection
ModuleNotFoundError: No module named 'telethon'

机器人执行某些脚本报错

机器人执行某些脚本报错,config里的变量是写进去了,手动也可以执行,但机器人执行不了。
比如脚本 KingRan_KR/jd_sevenDay.js

2022-09-13 20:32:25,505 telethon.client.uploads INFO [upload_file] Uploading file of 2107 bytes in 1 chunks of 131072
2022-09-13 20:38:40,972 telethon.client.uploads INFO [upload_file] Uploading file of 2052 bytes in 1 chunks of 131072
2022-09-13 20:56:05,987 telethon.client.uploads INFO [upload_file] Uploading file of 10608 bytes in 1 chunks of 131072
2022-09-13 21:12:05,440 telethon.client.uploads INFO [upload_file] Uploading file of 5872 bytes in 1 chunks of 131072
2022-09-13 21:59:45,224 telethon.client.uploads INFO [upload_file] Uploading file of 5310 bytes in 1 chunks of 131072
2022-09-13 22:37:30,910 telethon.client.uploads INFO [upload_file] Uploading file of 7532 bytes in 1 chunks of 131072
2022-09-13 23:16:59,798 telethon.client.uploads INFO [upload_file] Uploading file of 1828 bytes in 1 chunks of 131072
2022-09-13 23:33:18,833 telethon.client.uploads INFO [upload_file] Uploading file of 2694 bytes in 1 chunks of 131072
2022-09-13 23:37:57,266 telethon.client.uploads INFO [upload_file] Uploading file of 1828 bytes in 1 chunks of 131072
2022-09-13 23:40:49,053 jbot ERROR [activityID] 错误--->'超级无线店铺签到'
2022-09-13 23:43:41,394 jbot ERROR [activityID] 错误--->'超级无线店铺签到'
2022-09-13 23:44:35,600 jbot ERROR [activityID] 错误--->'超级无线店铺签到'
2022-09-13 23:45:42,022 jbot ERROR [activityID] 错误--->'超级无线店铺签到'
2022-09-13 23:52:18,123 jbot ERROR [activityID] 错误--->'加购有礼通用-加密'

【💥错误💥】

文件名:user
函数名:activityID
错误原因:'加购有礼通用-加密'

建议百度/谷歌进行查询

cd /ql/data python3 -m jbot. 启动报错

Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/ql/data/jbot/init.py", line 81, in
jdbot = TelegramClient("bot", API_ID, API_HASH, connection_retries=None).start(bot_token=TOKEN)
File "/usr/lib/python3.9/site-packages/telethon/client/telegrambaseclient.py", line 273, in init
session = SQLiteSession(session)
File "/usr/lib/python3.9/site-packages/telethon/sessions/sqlite.py", line 53, in init
version = c.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable

挂机时间久了不监控

时间长了就不监控频道了,其他指令有反应,就是user?没反应,也不监控,重启也不行,重装可以解决,什么问题
Uploading 231D3C50-B3BE-4F59-9A29-5A6F83F6C090.png…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.