1.1.2 • Published 1 year ago

sennur v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

✨️ New update! V1.1.2

What's new?

  • A new platform has been added for the checkVote function. You can now see whether users voted for your bots, which are also on the discord.place platform! Detailed: Here

Usage

Emoji Text (For Discord Bot)

  • Converts the text you type into emojis

Example code;

const sennur = require("sennur")
const text = await sennur.toEmoji("Test")
console.log(text)

Check Vote (For Discord Bot)

Top.GG

  • If your bot is on the Top.GG site, you will be able to easily find out whether any users have voted for your bot!

Example code;

const sennur = require("sennur")
const result = await sennur.checkVote({
    platform:'top.gg',
    apiKey:`TopGG Bot Token`,
    botId: 'Bot id',
    userId:`User id`
});
console.log(result) // true or false (True: Voted,False: No vote)

discord.place

  • If your bot is on the discord.place site, you will be able to easily find out whether any users have voted for your bot!

Example code;

const sennur = require("sennur")
const result = await sennur.checkVote({
    platform:'discord.place',
    apiKey:`discord.place api key`,
    botId: 'Bot id',
    userId:'User id'
});
console.log(result) // true or false (True: Voted,False: No vote)

Fun Fact

  • Gives random fun fact

Example code;

const sennur = require("sennur")
const fact = await sennur.funFact()
console.log(fact) // Fun fact

Leap Year (29 February)

  • Indicates whether the entered year is a leap year or not.
  • If your site/bot has a birthday system, I recommend using this module!

Example code;

const sennur = require("sennur")
const result1 = await sennur.isLeapYear("2024")
const result2 = await sennur.isLeapYear("2023")
console.log(result1) // true
console.log(result2) // false

Links

1.1.1

1 year ago

1.0.2

1 year ago

1.1.0

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.1.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1-sennur.1

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago