Created
March 28, 2017 07:52
-
-
Save Yardanico/ed7ec1337df1c769e79a375ba2b06ed2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include base | |
import random, sequtils | |
randomize() | |
proc call*(api: VkApi, msg: Message) = | |
let args: seq[string] = msg.cmd.arguments | |
var intArgs: seq[int] = @[] | |
try: | |
intArgs = args.mapIt(int(it)) | |
except: | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment