Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
github.com/bots-go-framework/bots-fw
A Go language framework to develop bots for messengers.
Developed & shared by Sneat-co & Strongo teams with usage of dalgo library.
Reasons to use:
- help with code coverage needed.
func InitBot(httpRouter HttpRouter, botHost bots.BotHost, appContext common.DebtsTrackerAppContext) {
driver := bots.NewBotDriver( // Orchestrate requests to appropriate handlers
bots.AnalyticsSettings{GaTrackingID: common.GA_TRACKING_ID}, // TODO: Refactor to list of analytics providers
appContext, // Holds User entity kind name, translator, etc.
botHost, // Defines how to create context.Context, HttpClient, DB, etc...
"Please report any issues to @DebtsTrackerGroup", // Is it wrong place? Router has similar.
)
driver.RegisterWebhookHandlers(httpRouter, "/bot",
telegram.NewTelegramWebhookHandler(
telegramBotsWithRouter, // Maps of bots by code, language, token, etc...
newTranslator, // Creates translator that gets a context.Context (for logging purpose)
),
viber.NewViberWebhookHandler(
viber.Bots,
newTranslator,
),
fbm.NewFbmWebhookHandler(
fbm.Bots,
newTranslator,
),
)
}
The best way to learn is to see examples of usage. Here is few:
We would be happy to place a link to your example / bot that is implemented using this framework.
You can use any Bot API library by implementing couple of simple interface but the framework comes with few buildins:
We are building a cross-table of features supported by different bot APIs.
Thanks to dalgo library the framework can work with different databases. The Db structure is described in README-DB.md.
There are no articles about the Strongo Bots Framework just yet. Send us a link if you find such.
Licensed under Apache 2.0 license
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.