- Added hunt/feed duck mechanics (80% hunt, 20% feed) - Implemented persistent scoring system - Added channel control commands (\!stopducks/\!startducks) - Enhanced duck hunt with wrong action penalties - Organized bot structure with botmain.js as main file - Added comprehensive documentation (README.md) - Included 17 plugins with various games and utilities 🦆 Duck Hunt Features: - Hunt ducks with \!shoot/\!bang (80% of spawns) - Feed ducks with \!feed (20% of spawns) - Persistent scores saved to JSON - Channel-specific controls for #bakedbeans - Reaction time tracking and special achievements 🎮 Other Games: - Casino games (slots, coinflip, hi-lo, scratch cards) - Multiplayer games (pigs, zombie dice, quiplash) - Text generation (babble, conspiracy, drunk historian) - Interactive features (story writing, emojify, combos) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
No EOL
1 KiB
JavaScript
38 lines
No EOL
1 KiB
JavaScript
// plugins/basic.js - Basic commands plugin
|
|
module.exports = {
|
|
init(bot) {
|
|
console.log('Basic plugin initialized');
|
|
},
|
|
|
|
cleanup(bot) {
|
|
console.log('Basic plugin cleaned up');
|
|
},
|
|
|
|
commands: [
|
|
{
|
|
name: 'ping',
|
|
description: 'Responds with pong',
|
|
execute(context, bot) {
|
|
bot.say(context.replyTo, `${context.nick}: pong!`);
|
|
}
|
|
},
|
|
|
|
{
|
|
name: 'help',
|
|
description: 'Shows available commands',
|
|
execute(context, bot) {
|
|
const commands = Array.from(bot.commands.keys());
|
|
bot.say(context.replyTo, `Available commands: ${commands.join(', ')}`);
|
|
}
|
|
},
|
|
|
|
{
|
|
name: 'time',
|
|
description: 'Shows current time',
|
|
execute(context, bot) {
|
|
const now = new Date().toLocaleString();
|
|
bot.say(context.replyTo, `Current time: ${now}`);
|
|
}
|
|
}
|
|
]
|
|
}; |