Chat commands to script

ok so how would i go about it?

as theres gifthub chat scripts but they either outdated lol