Skip to content

Instantly share code, notes, and snippets.

@Yardanico
Created March 28, 2017 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yardanico/ed7ec1337df1c769e79a375ba2b06ed2 to your computer and use it in GitHub Desktop.
Save Yardanico/ed7ec1337df1c769e79a375ba2b06ed2 to your computer and use it in GitHub Desktop.
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