Socket
Socket
Sign inDemoInstall

selfo.js

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selfo.js - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "selfo.js",
"version": "1.1.0",
"version": "1.1.1",
"description": "An npm personal module for interacting with the Discord API focusing on self-bot accounts",

@@ -5,0 +5,0 @@ "main": "./src/index",

@@ -46,4 +46,4 @@ <div align="center">

client.on('message', msg => {
if (msg.content == 'flood')
client.flood('channel/user id', 'Flood Message', 2000)
if(msg.content == 'Hi')
msg.channel.send('Hi xD');
});

@@ -67,3 +67,12 @@

## Contributing
Before creating an issue, please ensure that it hasn't already been reported or suggested.
## Contributing - bug fixes
Contributions are welcome! Please feel free to open an issue or submit a pull request, for bug fixes or new features.
1. Fork the repository
2. Create a new branch `git checkout -b <new-feature-name>`
3. Make the changes
4. Commit the changes `git commit -am "Add new feature"`
5. Push the changes `git push origin <new-feature-name>`
6. Create a pull request on GitHub
Many thanks!

@@ -31,3 +31,6 @@ const Action = require('./Action');

} else {
const message = channel._cacheMessage(new Message(channel, data, client));
let message;
try {
message = channel._cacheMessage(new Message(channel, data, client));
} catch(e) { message = null } // TODO message cause
channel.lastMessageID = data.id;

@@ -34,0 +37,0 @@ if (user) {

@@ -15,3 +15,5 @@ const Action = require('./Action');

if (channel) {
message = channel.messages.get(data.id);
try {
message = channel.messages.get(data.id);
} catch (e) { message = null }
if (message) {

@@ -18,0 +20,0 @@ channel.messages.delete(message.id);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc