discord-lovely
v0.0.8
Published
Giving your Discord-bot a live view.
Downloads
2
Readme
node-discord-lovely
Giving your Discord-bot a live view.
Install
$ npm install discord-lovely
Usage
var dl = require('discord-lovely');
Available methods
- .italic()
- .blod()
- .boldItalic()
- .underline()
- .underlineItalic()
- .underlineBold()
- .underlineBoldItalic()
Examples
with discord.io
var Discord = require('discord.io');
var dl = require('discord-lovely');
var bot = new Discord.Client({
token: "",
autorun: true
});
bot.on('ready', function() {
console.log('Logged in as %s - %s\n', bot.username, bot.id);
});
bot.on('message', function(user, userID, channelID, message, event) {
if (message === "hello") {
bot.sendMessage({
to: channelID,
message: dl.italic("Hello and you!");
});
}
});
with discord.js
const Discord = require('discord.js');
const client = new Discord.Client();
const dl = require('discord-lovely');
client.on('ready', () => {
console.log('I am ready!');
});
client.on('message', message => {
if (message.content === 'hello') {
message.reply(dl.italic("Hello and you!"));
}
});
client.login('your token');
Soon colors