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.
To use amtixdev-run
in your project, install it via npm:
npm install amtixdev-run
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'
});
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'
});
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}`);
});
Feel free to contribute to this package by opening issues or pull requests. Your feedback and contributions are highly appreciated.
This package is licensed under the MIT License.