Fixed things, added examples
This commit is contained in:
parent
a2740151c5
commit
375ee3b683
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2016 Hackzzila
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,3 +1,3 @@
|
|||
# Discord Dart
|
||||
A Dart library for Discord
|
||||
[https://discord.gg/6JwnkNk](Join Our Discord Server)
|
||||
[Join Our Discord Server](https://discord.gg/6JwnkNk)
|
||||
|
|
15
example/ping-pong.dart
Normal file
15
example/ping-pong.dart
Normal file
|
@ -0,0 +1,15 @@
|
|||
import 'package:DiscordDart/discord_dart.dart' as discord;
|
||||
|
||||
main() {
|
||||
var bot = new discord.Client("your token");
|
||||
|
||||
bot.onEvent('ready', () {
|
||||
print("Ready!");
|
||||
});
|
||||
|
||||
bot.onEvent('message', (m) async {
|
||||
if (m.content == "!ping") {
|
||||
bot.sendMessage(m.channel, "");
|
||||
}
|
||||
});
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
name: DiscordDart
|
||||
name: discord_dart
|
||||
version: 0.1.0
|
||||
description: A Discord library for Dart
|
||||
author: Hackzzila
|
||||
author: Hackzzila <admin@hackzzila.com>
|
||||
homepage: https://github.com/Hackzzila/Discord-Dart
|
||||
dependencies:
|
||||
http: any
|
||||
http: ">=0.11.3+9 <0.12.0"
|
||||
|
|
Loading…
Reference in a new issue