Code Monkey home page Code Monkey logo

xinjingdailybot's Issues

已知Bug

image
审核群有小概率出现此错误,提示“请不要重复操作"

echo命令有概率发给非回复对象

处理旧的稿件,一直出现"请不要重复操作"!

image

我尝试修改了配置文件中的PostExpiredTime为0,后面又改成int 的最大值,结果和之前默认值3显示的一样,请问这个值是单位是天数还是什么单位,如果我想让稿件一直不过期,该如何设置呢??

使用 /edit 修改内容提交后,Bot 卡死

I 2023/08/01 18:45:19.130 [XinjingdailyBot.Service.Bot.Common.UpdateService] 【私聊|CyrusAntony】 Cyrus Antony(@AntonyCyrus) [文本] /start
E 2023/08/01 18:45:19.142 [XinjingdailyBot.Service.Bot.Common.PollingService] 接收服务运行出错 MySqlConnector.MySqlException (0x80004005): Duplicate entry '5767935565-7773' for key 'dialogue.index_chat'
at SqlSugar.MySqlProvider.ExecuteCommandAsync(String sql, SugarParameter[] parameters)
at SqlSugar.MySqlProvider.ExecuteCommandAsync(String sql, SugarParameter[] parameters)
at SqlSugar.InsertableProvider1.ExecuteCommandAsync() at SqlSugar.SimpleClient1.InsertAsync(T insertObj)
at XinjingdailyBot.Service.Data.DialogueService.RecordMessage(Message message)
at XinjingdailyBot.Service.Bot.Common.DispatcherService.OnMessageReceived(Users dbUser, Message message)
at XinjingdailyBot.Service.Bot.Common.UpdateService.HandleUpdateAsync(ITelegramBotClient _, Update update, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateHandler.HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateReceiver.ReceiveAsync(IUpdateHandler updateHandler, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClientExtensions.ReceiveAsync(ITelegramBotClient botClient, IUpdateHandler updateHandler, ReceiverOptions receiverOptions, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClientExtensions.ReceiveAsync(ITelegramBotClient botClient, Func4 updateHandler, Func4 pollingErrorHandler, ReceiverOptions receiverOptions, CancellationToken cancellationToken)
at XinjingdailyBot.Service.Bot.Common.PollingService.DoWork(CancellationToken stoppingToken) Server Error Code: 1062;SqlState: 23000

功能建议:夜间静音推送

假如凌晨有大量投稿,如果用户开了推送通知提醒,可能会对用户造成困扰,导致退订频道损失订阅者。

冒昧问一下,应该如何在linux在运行?

我的服务器是甲骨文的Arm机,ubuntu 20.04

尝试了 ./XinjingdailyBot 提示
root@ubuntu:~/tougao-bot# ./XinjingdailyBot
-bash: ./XinjingdailyBot: No such file or directory

使用sh XinjingdailyBot
XinjingdailyBot: 1: Syntax error: word unexpected (expecting ")")

查阅了一下 C# 程序可以使用 mono,安装后
root@ubuntu:~/tougao-bot# mono XinjingdailyBot
Cannot open assembly 'XinjingdailyBot': File does not contain a valid CIL image.

自行尝试了多种方式均无法启动,不是很了解这个语言。。所以希望作者 可以告知一下相关指令,谢谢!!!还是说暂时不支持Arm64呢?

机器人的投稿能否自动解析来自 fxtwitter / vxtwitter / ddinstagram 等网站的链接预览?

目前,我们从每日无数猫频道 miaowu 收到的投稿如果来源是 fxtwitter / vxtwitter / ddinstagram / coolapk1s,在审核时还可以看到解析出来的图片和视频预览,但最终提交上去的只有一个链接,没有解析出预览图:
image
image

另一边,通过WebpageBot就可以强行解析出链接预览。
image

想知道投稿机器人能否在投稿时,自动解析这类网站链接?

功能建议

希望增加一个自定义底部文本内容,如:

投稿内容

这是自定义底部文本的内容

这样就可以支持以下的内容

投稿内容

文本内容
频道:@xxx
群组:@xxx
投稿:@xxx

当频道是私有时,投稿成功后的消息直链是错的

程序版本: 2.2.4.11
子版本: source

  1. 频道私有
  2. 投稿成功后点击机器人发送的"消息直链"
  3. 提示找不到这个手机号

机器人发送的链接形式是
t.me/-100{Channel ID}/{Message ID}

正确应该为
t.me/c/{Channel ID}/{Message ID}

即:/-100 替换为 /c/

字符编码问题?

在我这实际使用的时候,这套程序对于Unicode字符(如 igfonts.io 的艺术字体)会显示为“?”
这个是需要在Linux环境做更改吗?还是要修改一下程序配置

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.