Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctkqiang/flutter_discord_logger
a flutter package for sending messages to discord channel
https://github.com/ctkqiang/flutter_discord_logger
Last synced: 20 days ago
JSON representation
a flutter package for sending messages to discord channel
- Host: GitHub
- URL: https://github.com/ctkqiang/flutter_discord_logger
- Owner: ctkqiang
- License: mit
- Created: 2022-05-26T10:12:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T10:57:34.000Z (over 2 years ago)
- Last Synced: 2024-09-12T01:15:09.053Z (4 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_discord_logger
- Size: 1.68 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
### flutter_discord_logger
This package is a flutter version of `discord-logger-js`. Refer: https://github.com/johnmelodyme/discord-logger-js
| | Android | IOS |
| --------------- | ------- | ------- |
| **Requirement** | min 16 | min 9.0 |#### Demo:
![demo](
https://github.com/johnmelodyme/flutter_discord_logger/blob/main/demo.gif?raw=true)### How to use?
1. Installation
Add `flutter_discord_logger` to `pubspec.yaml`, and hit command `flutter pub get`.
or
run `flutter pub add flutter_discord_logger````yaml
dependencies:
flutter_discord_logger: any
```2. Implementation
Before implementing, make sure you uderstand the `parameters`.```dart
import 'package:flutter_discord_logger/flutter_discord_logger.dart';
```Example of calling the widget:
```dart
/// Init Discord
late final Discord discord = Discord(
/// Name of your webhook
appName: 'app',/// Your Webhook url
webhookUrl: webhook.text.toString(),
);discord.send(
/// Your message
message: message.text.toString(),
/// delay, default set to 1
timer: 2,
);
```### Contribution:
I Would ❤️ to see any contributions. If you do liked my work, show some ❤️ by ⭐ repo.