If you are refering to the OAuth token necessary for your bot to connect to IRC, it can be retrieved here. If you are talking about the invidual user’s permission to call certain commands, then you can simply permit the user with the same name as the stream (the channel owner) and any user with a mod tag.
Passing “CAP REQ :twitch.tv/tags” to the server will enable messages in the form:
@color=#0000FF;emotes=16156:0-7;subscriber=1;turbo=0;user_type=mod :joe_user!joe_user@joe_user.tmi.twitch.tv PRIVMSG #somerandomchannel:lirikMLG is awesome!
user_type will either hold the value mod, global_mod, admin, staff or be empty.
When you are sure that the bot only listens to the channel, you can have it join any channel without problems. For safe testing I use my own channel and use my own account or ask friends to post test messages.