Coder Social home page Coder Social logo

chofnar / release-bot Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 2.0 285 KB

release-bot - A Telegram Bot (@prgitrelbot) that notifies you of new Github releases

License: MIT License

Go 99.00% Dockerfile 1.00%
bot github-releases go golang telegram telegram-bot

release-bot's Introduction

Hey, I'm Catalin

You can also call me George.

🛠  Tech Stack

Go Visual Studio Code 

release-bot's People

Contributors

chofnar avatar dependabot[bot] avatar

Stargazers

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

Watchers

 avatar  avatar

release-bot's Issues

Update Actions/vm-deploy.yml

vm-deploy show 21 warnings

actions/checkout@v2 -> actions/checkout@v4
docker/setup-qemu-action@v1 -> docker/setup-qemu-action@v3
docker/setup-buildx-action@v1 -> docker/setup-buildx-action@v3
docker/login-action@v1 -> docker/login-action@v3
docker/build-push-action@v2 -> docker/build-push-action@v5

appleboy/ssh-action@master -> actions/checkout@v4 (i think the same can be achieved by using official GitHub actions/checkout, need investigation)

Possible future features

  • Run the update handlers in goroutines - make the AwaitingAdd map thread safe, guard against click spam (probably not needed unless the bot is used A LOT)
  • Check database if repo exists for other users & it has a new version -> notify

Repo list closes on repo delete

Not sure is it a bug or not, but when i click on delete repo or enable pre releases the repo list is closing. The expected behaviour is closing repo list only by clicking on "back to menu" button.

Introduce periodic database cleanup

  • Some users are adding repos and then blocking the bot. Their entries need to be deleted from the database.
  • Repos can go private and the bot can't see them. Investigate, send notification to affected users, delete from db.

update files encodings

All project files have windows-1251 encoding (except strings.go). Change encodings of all files to UTF-8.

Solution is to create (or update) .editorconfig with these strings

[*]

# Specify charset and end of line

end_of_line = crlf
charset = utf-8

Features to implement for release

  • Implement database updater that also notifies users of new releases
  • Address the various TODOs leftovers in the code
  • Cron that calls the update database endpoint with a super secret token

Ability to send messages in topics

Right now, if I add a bot to a group with multiple topics it send messages only in main topic, even if I run it in different.

image
image

I thing it should send messages in the same topic.

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.