Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gubaz311 committed Nov 21, 2023
1 parent c12ea3f commit ad6f149
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions index.exs
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Pendefinisian fungsi
defmodule MyModule do
def my_function(x) do
IO.puts "Nilai yang diterima: #{x}"
defmodule Elix.Mixfile do
use Mix.Project

def project do
[app: :botMessage,
version: "0.1.0",
elixir: "~> 1.14.5",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
end

# Panggil fungsi
MyModule.my_function(32)

def application do
[
mod: {Elix, []},
extra_applications: [:logger]
]
end
end

0 comments on commit ad6f149

Please sign in to comment.