I’ve written my own bot in the Nim language.
I’ve have an install.sh
script that installs nim, and then compiles the bot. I’ve successfully tested the script on an Unbutu server. When uploading to Halite, after the successful compilation messages, I’m see the following error message,
Did not find a recognized MyBot.* file. Please add one of the following filenames to your zip file: Ada: MyBot.adb C++: CMakeLists.txt C: MyBot.c C#/.NET Core: MyBot.csproj C#/Mono: MyBot.cs VB/Mono: MyBot.vb C++: MyBot.cpp Clojure: project.clj CoffeeScript: MyBot.coffee D: MyBot.d Dart: MyBot.dart Elixir: mix.exs Erlang: my_bot.erl F#/.NET Core: MyBot.fsproj Forth: MyBot.fs Go: MyBot.go Groovy: MyBot.groovy Haskell: MyBot.hs Haskell/Stack: stack.yaml Java: MyBot.java JavaScript: MyBot.js JAR: MyBot.jar Julia: MyBot.jl Kotlin: MyBot.kt Lisp: MyBot.lisp Lua/LuaJIT: MyBot.lua Lua/Lua5.3: MyBot.lua53 OCaml: MyBot.ml Octave: MyBot.m Pascal: MyBot.pas Perl: MyBot.pl PHP: MyBot.php Python: MyBot.py Python (PyPy): MyBot.pypy Racket: MyBot.rkt Ruby: MyBot.rb Rust: Cargo.toml Scala: MyBot.scala Scheme: MyBot.ss Swift: Package.swift Tcl: MyBot.tcl
What do I need to do? I do have MyBot.nim file in the zip.
my install.sh file:
#!/bin/bash
mkdir tools
cd tools
curl -O https://nim-lang.org/download/nim-0.19.0.tar.xz
tar -xJf nim-0.19.0.tar.xz
cd nim-0.19.0/
sh build.sh
cd ../..
tools/nim-0.19.0/bin/nim compile -d:release MyBot.nim
rm -rf tools/nim-0.19.0