Skip to content

Api proposal #1

@zzarcon

Description

@zzarcon

Interface

interface BotOptions {
  
} 

interface LikeOptions {
  maxLikes?: number;
}

class LuckyBot {
  constructor(userName: string, password: string, options?: BotOptions) {}
  
  like(hashtag: string, options?: LikeOptions): Promise<void> {}
}

Usage

import LuckyBot from 'luckybot';

const bot = new LuckyBot(userName, password)

await bot.like('skateboarding', {maxLikes: 50});

console.log('done');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions