Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mizari-dev/discord-webhook-console
An easy way to send your logs on Discord via webhooks.
https://github.com/mizari-dev/discord-webhook-console
console discord discord-js discord-webhook log logger webhook
Last synced: about 21 hours ago
JSON representation
An easy way to send your logs on Discord via webhooks.
- Host: GitHub
- URL: https://github.com/mizari-dev/discord-webhook-console
- Owner: Mizari-Dev
- License: mit
- Created: 2024-12-19T17:42:21.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-01-09T09:08:45.000Z (about 1 month ago)
- Last Synced: 2025-02-09T03:06:01.251Z (2 days ago)
- Topics: console, discord, discord-js, discord-webhook, log, logger, webhook
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-webhook-console
Like JavaScript `console` object but works with Discord webhooks.Exemple of use:
```javascript
const { WebhookConsole } = require("discord-webhook-console");// create the webhook console with a Discord webhook URL
const wconsole = new WebhookConsole("https://discord.com/api/webhooks/{webhook_id}/{webhook_token}");// assert log
wconsole.assert(false, "Assert test");
// count log
wconsole.count("Count test");
wconsole.count("Count test");
wconsole.countReset("Count test");
wconsole.count("Count test");
// default log
wconsole.debug("Debug test");
wconsole.info("Info test");
wconsole.log("Log test");
// error log
wconsole.error("Error test");
// table log
wconsole.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
// time log
wconsole.time("Time test");
wconsole.timeLog("Time test");
wconsole.timeEnd("Time test");
// trace log
wconsole.trace("Trace test");
// warn log
wconsole.warn("Warn test");
```