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');
Interface
Usage