Initial commit with IRC and bot example.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
5
lib/util.ex
Normal file
5
lib/util.ex
Normal file
@@ -0,0 +1,5 @@
|
||||
defmodule Omnibot.Util do
|
||||
def string_empty?(s), do: String.length(s) == 0
|
||||
|
||||
def string_or_nil(s), do: if(string_empty?(s), do: nil, else: s)
|
||||
end
|
||||
Reference in New Issue
Block a user