mc_whoami: Listen for "Who am I"

Description Usage Arguments Details Value Examples

View source: R/mc_whoami.R

Description

Listen for "Who am I" on minecraft chat, and respond with the player's entity ID.

Usage

1
mc_whoami(delay = 1, max_time = Inf)

Arguments

delay

Delay (in seconds) between checks of the chat messages

max_time

Maximum amount of time (in seconds) before quitting.

Details

Uses base::grepl(), ignoring case, to look for "who am I" in the chat messages, and prints the player ID of any player who posts a chat message containing that phrase.

Value

A vector of player IDs

Examples

1
2
#' will run for 15 seconds
mc_whoami(max_time=15)

ropenscilabs/miner.extra documentation built on Dec. 20, 2020, 1:25 p.m.