Be it further enacted by the authority aforesaid that the mayor and council of Wrightsville shall have the authority to organize within said city a city chain gang in which they are authorized to cause such prisoners of [or] offenders against the ordinances, rules and regulations of said city as may be by the mayor or acting mayor sentenced so to work, and council shall have authority to pass such ordinances, rules and regulations as they may deem proper for the management and maintenance of the same, provided they are not inconsistent with the general laws of this state.