-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove bot_on since it's actually unnecessary
- Loading branch information
Showing
3 changed files
with
4 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
from pokemongo_bot import logger, event_manager | ||
from pokemongo_bot.event_manager import manager | ||
|
||
@manager.bot_on("before_catch_pokemon") | ||
@manager.on("before_catch_pokemon") | ||
def action_before_catch_pokemon(event, bot, name=None, cp=None, pokemon_potential=None, **kwargs): | ||
logger.log("[#] A Wild {} appeared! [CP {}] [Potential {}]".format(name, cp, pokemon_potential, "yellow")) | ||
|
||
@manager.bot_on("catch_pokemon") | ||
@manager.on("catch_pokemon") | ||
def action_catch_pokemon(hook_params): | ||
pass | ||
|
||
@manager.bot_on("after_catch_pokemon") | ||
@manager.on("after_catch_pokemon") | ||
def action_after_catch_pokemon(event, bot, name=None, cp=None, **kwargs): | ||
logger.log("[x] Captured {} [CP {}]".format(name, cp, "green")) | ||
|
||
@manager.bot_on("use_pokeball") | ||
@manager.on("use_pokeball") | ||
def action_use_pokeball(event, bot, pokeball_name=None, number_left=None, **kwargs): | ||
logger.log("[x] Using {}... ({} left!)".format(pokeball_name, number_left)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters