Skip to content

Instantly share code, notes, and snippets.

class ThermInfraCostPlugin < Plugin
# return a help string when the bot is asked for help on this plugin
def help(plugin, topic="")
return "infracost <infra> <amount> <resources> => returns cost to purchase <amount> infra starting at <infra> with resources <resources>. Assumes you have factories and construction."
end
# tells you cost of <amount> infra starting at <infra>
def privmsg(m)