phBot Plugins
  • Introduction
  • Example Plugins
  • phBot API
    • Client
    • Guild
    • Events
    • Players
    • Party
    • NPC
    • Character
    • Academy
    • Inventory
    • Pets
    • Monsters
    • Encoding
    • Locale
    • Config
    • Botting
    • Taxi
    • Packet Injection
    • Log
    • Game Data
    • Teleport
    • Training Area
    • Command Line Arguments
    • Movement
    • Quests
    • Drops
    • Paths
    • Script
    • Notifications
    • Alchemy
    • Misc
  • Chat API
  • Handling Script Commands
  • GUI API
Powered by GitBook
On this page
  • get_config_path()
  • get_config_dir()
  • get_log_dir()
  1. phBot API

Config

get_config_path()

This function returns the player's JSON configuration path. Any changes you make will be overwritten by the bot at some point.

Usage

get_config_path()

Returns

string or None if the player is not in game.

get_config_dir()

This function returns the phBot Config directory. It will include a trailing forward slash - you do not need to append one.

Usage

get_config_dir()

Returns

string

get_log_dir()

This function returns the phBot Log directory. It will include a trailing forward slash - you do not need to append one.

Usage

get_log_dir()

Returns

string

PreviousLocaleNextBotting

Last updated 2 years ago