
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A chat logs online saver for discord bots to save messages history & cleared messages online
Check out or website Chat Logs.
npm i logs.chat
create(messages)
- Saves chat messages online
messages
: (REQUIRED) Discord Chat Messages Collectionget(id)
- Gets a saved chat messages
id
: (REQUIRED) Chat IDexists(id)
- Check if a saved chat exists
id
: (REQUIRED) Chat IDit will return an object looks like this:
{
"ID": "1",
"url": "https://logs.chat/chat/1"
}
const chat = require('logs.chat');
const Discord = require('discord.js');
const client = new Discord.Client({
"intents": [
"GUILDS",
"GUILD_MESSAGES"
]
});
const prefix = '!';
client.on('ready', () => {
console.log('Logged in as ' + client.user.tag);
});
client.on('messageCreate', async message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if (command === 'save') {
let messages = await message.channel.messages.fetch();
let createdChat = await chat.create(messages);
let embed = new Discord.MessageEmbed()
.setTitle(`Chat Created with ${messages.size} messages`)
.setColor("#00bd8d")
.setThumbnail(message.guild.iconURL({dynamic:true}))
.setDescription(`[View Chat Online](${createdChat.url})`)
.addField("Channel", message.channel.toString(), true)
.addField("Chat Code", createdChat.ID, true)
message.reply({embeds: [embed]});
}
});
client.login("TOKEN")
© Chat Logs, 2021 - 2022 | TARIQ (contact@itariq.dev)
FAQs
A chat logs online saver for discord bots to save messages history & cleared messages online
The npm package logs.chat receives a total of 7 weekly downloads. As such, logs.chat popularity was classified as not popular.
We found that logs.chat 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.