amtixdev-run

1.0.1 • Public • Published

amtixdev-run

Description

amtixdev-run is an npm package that provides classes for creating and managing Discord bots, handling user-related functionalities, and automating reactions and actions in Discord servers.

Installation

To use amtixdev-run in your project, install it via npm:

npm install amtixdev-run

Usage

Example Usage of userAccount

const { userAccount } = require('amtixdev-run');

// Instantiate userAccount with your Discord client and Discord.js
const userAccountManager = new userAccount(client, Discord);

// Use the methods of userAccount as needed
userAccountManager.autoReaction({
  channel: 'CHANNEL_ID',
  user: 'USER_ID',
  token: 'YOUR_DISCORD_TOKEN',
  reactionName: '🎉',
  timeout: 5000,
  blacklistedwords: ['blacklist1', 'blacklist2']
});

userAccountManager.leveling({
  channel: 'CHANNEL_ID',
  randomLetters: false,
  time: 15000,
  type: 'eng'
});

Example Usage of botAccount

const { botAccount } = require('amtixdev-run');

// Instantiate botAccount with your Discord client and Discord.js
const botAccountManager = new botAccount(client, Discord);

// Use the broadcast method to send messages to users
botAccountManager.broadcast({
  ownerId: ['OWNER_ID_1', 'OWNER_ID_2'],
  prefix: '!',
  embedReply: 'Made by amtixdev-run.',
  mention: false,
  type: 'all' // or 'online'
});

Events

GetBotToken

The GetBotToken event is emitted by the createBot class when the bot's token is retrieved successfully after creation. You can listen for this event and handle the token as needed.

const { amtixdev } = require('amtixdev-run');
// Listen for the GetBotToken event
amtixdev.on('GetBotToken', (token) => {
  console.log(`Bot token retrieved: ${token}`);
});

Contributing

Feel free to contribute to this package by opening issues or pull requests. Your feedback and contributions are highly appreciated.

License

This package is licensed under the MIT License.

Package Sidebar

Install

npm i amtixdev-run

Weekly Downloads

51

Version

1.0.1

License

MIT

Unpacked Size

5 MB

Total Files

8

Last publish

Collaborators

  • amtixdev