Skip to main content
Deno 2 is finally here 🎉️
Learn more

iFunny.js

Discord

A simple wrapper for the iFunny API

const ifunny = require('iFunny')
const robot = new ifunny.Client({ prefix: '-' })

robot.on('login', async (fresh) => {
    await robot.socket.start()
})

robot.handler.on('message' async () => {
    message.reply('Hello, world!')
})

robot.command.on('ping', async (message, args) => {
    message.reply('Pong!')
})

robot.login('username', 'password')

Fun fact, there’s not a single file in this project called ifunny.js