smogon / Porygon-Z

The Bot for the Official Smogon Discord (WIP)
https://discord.gg/smogon
MIT License
13 stars 6 forks source link

Add a common file #11

Closed thejetou closed 4 years ago

thejetou commented 4 years ago

This moves ID, prefix, and toID from app.ts to common.ts, because none of these types/function/variables should be in an "app" file whose main purpose is to get the bot up and running.

I vaguely recall a discussion in the Smogon Development Discord server where global variables where decided against, so this seems like a good compromise.