the bot gets the modes direct from /list command and just strips the description away before listing what the modes are in use.
granted some modes are missing .. ie j and 0 (throttle and oper only) but they are not really used for "general" users channels. obviously this is unrealircd based script also