In 5e a ran a 3rd level warforged tome warlock for one session, who was straight up a sci-fi robot.
Agonizing blasts fired from his forearms. Eldritch sight was nightvision, while comprehend languages was translator programming.
He had a hologram projector for minor illusion, prestidigitation, and mirror image.
Armor of Agathys was a force field projector, and his owl familiar was a drone that attached to his chest.
Any new spells and powers gained when leveling up were to be equipment upgrades and programming updates.