
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
utilityxtreme
Advanced tools
The friendly package to start with your Discord bot application
UtilityXtreme is a library that simplifies of creating your own Discord bot application.
npm install utilityxtreme
yarn add utilityxtreme
Warn: This package is focused on declaration files, any comments are not going to be defined in the documentation site.
Click here to visit the documentation website.
ApplicationCommandsLoader: Loads application commands to Discord.BoostDetector: Detects whenever a guild member has boosted or has removed a boost from a guild.ButtonsPaginatorBuilder: An advanced paginator using buttons.Calculator: A simple and pre-ready calculator (mathjs not required).FileBuilder: Creates a file for Discord, by using Buffer.JSONDatabase: The methods are similar to Map but the data is saved in a JSON file.StringSelectMenuPaginatorBuilder: An advanced paginator using dropdown/select menus.calculateString: Calculates some simple math equations.censorString: Replaces some characters in a string with '*' (changeable).createDiscordTimestamp: Creates a Discord timestamp.hexColorGen: Generates a random HEX color code.idGen: Generates a random integer.isDiscordInviteURL: Detects whenever a string includes a Discord invite URL.isWebURL: Detects whenever a string includes any web URL.randomizedString: Generates some random characters.reverseString: Reverses a string.sleep: Sleeps for a specific time.import { Client, SlashCommandBuilder } from 'discord.js';
import { ApplicationCommandsLoader } from 'utilityxtreme';
const botToken = "Your bot token";
const botId = "Your bot id";
const client: Client = new Client({
intents: ['Guilds']
});
const commands: SlashCommandBuilder[] = [
new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
];
const loader: ApplicationCommandsLoader = new ApplicationCommandsLoader(botToken, botId, commands);
loader.on('loaderStarted', () => { console.log('Started loading application commands...') });
loader.on('loaderFinished', () => { console.log('Finished loading application commands.') });
loader.start().catch(console.error);
client.on('interactionCreate', async (interaction) => {
if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'ping') {
await interaction.reply({ content: 'Pong!' });
};
});
client.login(botToken);
const { Client, SlashCommandBuilder } = require('discord.js');
const { ApplicationCommandsLoader } = require('utilityxtreme');
const botToken = "Your bot token";
const botId = "Your bot id";
const client = new Client({
intents: ['Guilds']
});
const commands = [
new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
];
const loader = new ApplicationCommandsLoader(botToken, botId, commands);
loader.on('loaderStarted', () => { console.log('Started loading application commands...') });
loader.on('loaderFinished', () => { console.log('Finished loading application commands.') });
loader.start().catch(console.error);
client.on('interactionCreate', async (interaction) => {
if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'ping') {
await interaction.reply({ content: 'Pong!' });
};
});
client.login(botToken);
Did you find a problem (or a bug), or want to share some new ideas? Join the Discord server below!
You can create an Issue or a Pull Request instead on GitHub.
This project is under the license GPL-3.0.
This package is not associated with the discord.js development team.
FAQs
The friendly package to start with your Discord bot application
The npm package utilityxtreme receives a total of 0 weekly downloads. As such, utilityxtreme popularity was classified as not popular.
We found that utilityxtreme demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.