Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@hammerhq/plugin-sequelize
Advanced tools
Readme
This plugin adds the ability to use sequelize to Hammer bots.
Get support »
Report Bug
·
Documentation
Install main plugin
$ npm install @hammerhq/plugin-sequelize sequelize sequelize-typescript
Install one of the following database drivers:
$ npm install pg pg-hstore # Postgres
$ npm install mysql2 #MySQL
$ npm install mariadb #MariaDB
$ npm install sqlite3 #SQLite
$ npm install tedious # Microsoft SQL Server
$ npm install oracledb # Oracle Database
import { bootstrap } from "@hammerhq/core";
import { SequelizeModule } from "@hammerhq/plugin-sequelize";
import { Client } from "discord.js";
import { join } from "path";
const client = new Client(ClientOptions);
async function main() {
await bootstrap({
client,
i18n: {
defaultLocale: "en", // default locale, see @hammerhq/localization
directory: join(__dirname, "..", "locales"), // locales directory, see @hammerhq/localization
},
plugins: [
// hammer plugins here. You can download them with hammer cli, from npm and create your own!
SequelizeModule.forRoot({
dialect: "sqlite", // your database driver like sqlite, postgres, mysql, etc.
storage: ":memory:",
models: [], // your models here, to create a model please refer to https://www.npmjs.com/package/sequelize-typescript#model-definition
}),
],
});
await client.login(CONFIG.BOT_TOKEN);
}
main();
We are looking for contributors to actively work on Hammer and to contribute to the repos. There is still lots of work to do. If you are interested in contributing, please join our Discord server. (There will be a surprise for early contributors!)
Copyright © 2022 Barış DEMİRCİ.
Distributed under the GPL-3.0 License. See LICENSE
for more information.
This repo is open for #hacktoberfest. Feel free to use GitHub's features.
git checkout -b feature/my-feature
)npm run format
)git commit -m 'my awesome feature my-feature'
)git push origin feature/my-feature
)Give a ⭐️ if this project helped you!
FAQs
😎 Sequelize Plugin for Hammer
The npm package @hammerhq/plugin-sequelize receives a total of 1 weekly downloads. As such, @hammerhq/plugin-sequelize popularity was classified as not popular.
We found that @hammerhq/plugin-sequelize demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.