Git Product home page Git Product logo

pmcenter's Introduction

Hi there

Let me introduce him for you, he's just a:

You're only seeing this and this, thanks
📚 University student who majors in computer science and has started coding at 12
👨‍💻 C# & .NET enthusiast but started with Batch
🖥 Perfectionism at UI & UX who pays an awful lot of attention to the details
🛠 Developer of pmcenter and a super secret project
🌐 Website maintainer who runs elepover.com and many other sites
💻 User of Android, Windows 10 Linux (Arch for sure), iOS and macOS
⚙ Coder using Visual Studio, IntelliJ family KDevelop and Xcode
🎮 Player of osu! and many other rhythm games
🎵 Lover of music especially the inspiring kind
🌈 Member of the LGBT family right at the 2nd character
😆 Believer that things will get better

Kidding. Just a 🐦 pigeon.

Reach me at

GitHub: creating issues at this README repo.

For other methods: check out the magical domain contacts.elepover.com.

👇 And take a look at the repositories that I contributed to

pmcenter's People

Contributors

elepover avatar genteure avatar jimchen5209 avatar lwl12 avatar milkice233 avatar tasi788 avatar u2fsdgvkx1 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  avatar  avatar  avatar  avatar  avatar  avatar

pmcenter's Issues

Compatibility with 5.5.0

On Telegram 5.5.0 and later, users can choose their messages to be forwarded without linking to them, instead, showing this JSON:

"forward_from_chat": {
      "id": -1001228946795,
      "title": "a user",
      "username": "HiddenSender",
      "type": "channel"
    },
    "forward_signature": "(user name)"
    ...

Unexpected NullReferenceException

Symptom: Bot will throw NullReferenceException every when users forward channels' posts to bot. Further investigation is required.

Add dice info to /info command.

Is your feature request related to a problem? Please describe.
No. Obviously no.

Describe the solution you'd like
Add dice info to /info command.

Describe alternatives you've considered
No.

Additional context
That's still a no.

pmcenter v2: Move to .NET Core 3.1

pmcenter is planning to upgrade pmcenter's target .NET Core version from 2.1 to 3.1 with these following changes:

  • Add HTTP/2 support
  • Dice support
  • Fine, Telegram added "darts" but basically the same
  • Inline keyboard actions support
  • Move to .NET Core's new built-in JSON support
  • R2R images based on AOT compilation available through GitHub Releases
  • Toggleable autosave
  • Minify option for JSON configurations available

More features may be added in the future, stay tuned!

Releases and Docker Images

Is your feature request related to a problem? Please describe.
It would be nice if we could have releases, pre-built binaries and docker images for pmcenter.

Describe the solution you'd like
Setting up a CI/CD pipeline would be a pretty good solution I think.

Describe alternatives you've considered
Nope

Additional context
Nope

一个由TG官方功能引起的问题

刚刚我帮一个人搭建pmcenter,他搭完之后让我回复他的bot测试,他一直回复不了
排查到最后发现是Telegram Forwarded Messages功能的问题,如果用户禁止转发消息的话,bot主人无法回复用户
不知是否有解决方案,除了让用户关闭forward protect

/switchlangcode unhandle at error

Describe the bug
/switchlangcode doesn't handle error when it can't read/find locale file.

To Reproduce
Steps to reproduce the behavior:

  1. input /switchlangcode zh_tw to pmcenter bot (or something else)

Expected behavior
when the locale file not found or other cause abort, it should reply something to make user know something went wrong.

Logs

2019-09-03T00:52:50.877061329Z [09/03/2019 00:52][BOT][ERROR] General error while processing incoming update: System.ArgumentException: Language not found.
2019-09-03T00:52:50.877201663Z    at pmcenter.Commands.SwitchLangCodeCommand.ExecuteAsync(TelegramBotClient botClient, Update update)
2019-09-03T00:52:50.877213716Z    at pmcenter.CommandManager.Execute(TelegramBotClient botClient, Update update) in C:\projects\pmcenter\pmcenter\CommandManager.cs:line 71
2019-09-03T00:52:50.877228261Z    at pmcenter.BotProcess.OwnerCommand(Update update) in C:\projects\pmcenter\pmcenter\BotProcess.cs:line 279
2019-09-03T00:52:50.877233542Z    at pmcenter.BotProcess.OwnerLogic(Update update) in C:\projects\pmcenter\pmcenter\BotProcess.cs:line 271
2019-09-03T00:52:50.877238653Z    at pmcenter.BotProcess.OnUpdate(Object sender, UpdateEventArgs e) in C:\projects\pmcenter\pmcenter\BotProcess.cs:line 88

Finish http/2 support

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
Add http/2 protocol support in .NET Core 3.1.

Describe alternatives you've considered
No, unless you want to implement h2 yourself.

Additional context
None.

一个问题,一个建议。

问题:管理员通过机器人回复用户的消息时,机器人会通过转发的形式将管理员的账号昵称信息一同转发过去,这样会导致管理员的账号隐私泄露,换句话说,这样的机器人意义就不大了。
建议:增加消息撤回、编辑功能。

BotId cannot exceed int32 (2147483648)

Describe the bug
Cannot start when BotId exceeds int32 (2147483648).

To Reproduce
Create a new bot, fill its token into the configuration file, start.

Expected behavior
Just run.

Logs
[CORE][ERROR] Unexpected error during startup: System.ArgumentException: Invalid format. A valid token looks like "1234567:4TT8bAc8GHUspu3ERYn-KGcvsvGB9u_n4ddy". (Parameter 'token') at Telegram.Bot.TelegramBotClient..ctor(String token, IWebProxy webProxy) at pmcenter.Program.MainAsync(String[] args) in <hidden>\pmcenter\Program.cs:line 195

Additional context
In int.TryParse(string s, out int result), if the content of s exceeds int32, result will be 0

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.