Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- our sub eval(Str $target, PSBot::User $user, PSBot::Room $room,
- PSBot::StateManager $state, PSBot::Connection $connection --> Str) {
- return "{COMMAND}eval access is limited to admins" unless ADMINS ∋ $user.id;
- use MONKEY-SEE-NO-EVAL;
- say $target;
- my Str $result = try EVAL $target;
- say $result;
- ($result // $!).gist
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement