pucket
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0-alpha • Public • Published

    pucket Testing

    pucket is a typescript library to create automated tests for discord bots

    How it works ?

    pucket uses two bots to send messages between then, the first one is the 'fake user', who will send the real bot. The second one, is the bot that you want to test the commands. After configure which one is the fake user and the test bot, you can write your case tests like this:

    test('crete user').run(
        {
            say: "create",
            wait: "What's your name ?"
        }, 
        {
            say: "jhon",
            wait: "Hello jhon, welcome to my bot!"
        }
    )

    Quite simple uh ?

    pucket sintax is short and simple. Your say something to the bot, then you expect that he respond something to will, so you gonna wait for a response.

    Install

    npm i pucket

    DownloadsWeekly Downloads

    0

    Version

    0.1.0-alpha

    License

    ISC

    Unpacked Size

    116 kB

    Total Files

    134

    Last publish

    Collaborators

    • lgmagalhaes88