0.0.8 • Published 7 years ago

discord-lovely v0.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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](https://www.npmjs.com/package/discord.js)
```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

Package in development

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago