antoinerc / perudexcord Goto Github PK
View Code? Open in Web Editor NEWA Discord client for the perudex library.
A Discord client for the perudex library.
Show how many dices players have between the end of a round and the start of a new one
After using !per, I tried to cancel the game by using the "X" as suggested by the text, however, nothing seems to be happening.
18:06:48.110 [error] GenServer {Perudex.GameRegistry, {Perudex.GameServer, 975868273583325184}} terminating
** (ArithmeticError) bad argument in arithmetic expression
(perudex 0.4.0) lib/game.ex:330: Perudex.Game.find_next_player/1
(perudex 0.4.0) lib/game.ex:314: Perudex.Game.end_round/2
(perudex 0.4.0) lib/game_server.ex:30: Perudex.GameServer.handle_call/3
(stdlib 3.15.1) gen_server.erl:721: :gen_server.try_handle_call/4
(stdlib 3.15.1) gen_server.erl:750: :gen_server.handle_msg/6
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message (from #PID<0.1135.0>): {:move, 134074163194363904, :dudo}
State: %{game: %Perudex.Game{all_players: [134074163194363904, 357327014405079041, 220309979134033922], current_bid: {2, 2}, current_player_id: 134074163194363904, instructions: [], max_dice: 5, players_hands: [%{hand: %Perudex.Hand{dice: [4, 6, 1], remaining_dice: 3}, player_id: 134074163194363904}, %{hand: %Perudex.Hand{dice: [6, 6, 1], remaining_dice: 3}, player_id: 357327014405079041}, %{hand: %Perudex.Hand{dice: [2], remaining_dice: 1}, player_id: 220309979134033922}], remaining_players: [134074163194363904, 357327014405079041, 220309979134033922]}, id: 975868273583325184}
Client #PID<0.1135.0> is alive
(stdlib 3.15.1) gen.erl:233: :gen.do_call/4
(elixir 1.13.3) lib/gen_server.ex:1027: GenServer.call/3
(perudocord 0.1.0) lib/game_process.ex:63: PerudoCord.GameProcess.handle_call/3
(stdlib 3.15.1) gen_server.erl:721: :gen_server.try_handle_call/4
(stdlib 3.15.1) gen_server.erl:750: :gen_server.handle_msg/6
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
18:06:48.116 [error] GenServer {PerudoCord.GameRegistry, 975868273583325184} terminating
** (stop) exited in: GenServer.call({:via, Registry, {Perudex.GameRegistry, {Perudex.GameServer, 975868273583325184}}}, {:move, 134074163194363904, :dudo}, 5000)
** (EXIT) an exception was raised:
** (ArithmeticError) bad argument in arithmetic expression
(perudex 0.4.0) lib/game.ex:330: Perudex.Game.find_next_player/1
(perudex 0.4.0) lib/game.ex:314: Perudex.Game.end_round/2
(perudex 0.4.0) lib/game_server.ex:30: Perudex.GameServer.handle_call/3
(stdlib 3.15.1) gen_server.erl:721: :gen_server.try_handle_call/4
(stdlib 3.15.1) gen_server.erl:750: :gen_server.handle_msg/6
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
(elixir 1.13.3) lib/gen_server.ex:1030: GenServer.call/3
(perudocord 0.1.0) lib/game_process.ex:63: PerudoCord.GameProcess.handle_call/3
(stdlib 3.15.1) gen_server.erl:721: :gen_server.try_handle_call/4
(stdlib 3.15.1) gen_server.erl:750: :gen_server.handle_msg/6
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message (from #PID<0.1533.0>): {:dudo, 134074163194363904}
State: %PerudoCord.Game{creator_id: 220309979134033922, game_name: "chicken", id: 975868273583325184, players: [134074163194363904, 357327014405079041, 220309979134033922]}
Client #PID<0.1533.0> is alive
(stdlib 3.15.1) gen.erl:233: :gen.do_call/4
(elixir 1.13.3) lib/gen_server.ex:1027: GenServer.call/3
(elixir 1.13.3) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
18:06:48.117 [error] Task #PID<0.1533.0> started from #PID<0.1178.0> terminating
** (stop) exited in: GenServer.call(#PID<0.1135.0>, {:dudo, 134074163194363904}, 5000)
** (EXIT) exited in: GenServer.call({:via, Registry, {Perudex.GameRegistry, {Perudex.GameServer, 975868273583325184}}}, {:move, 134074163194363904, :dudo}, 5000)
** (EXIT) an exception was raised:
** (ArithmeticError) bad argument in arithmetic expression
(perudex 0.4.0) lib/game.ex:330: Perudex.Game.find_next_player/1
(perudex 0.4.0) lib/game.ex:314: Perudex.Game.end_round/2
(perudex 0.4.0) lib/game_server.ex:30: Perudex.GameServer.handle_call/3
(stdlib 3.15.1) gen_server.erl:721: :gen_server.try_handle_call/4
(stdlib 3.15.1) gen_server.erl:750: :gen_server.handle_msg/6
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
(elixir 1.13.3) lib/gen_server.ex:1030: GenServer.call/3
(elixir 1.13.3) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
(stdlib 3.15.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: #Function<0.33169565/0 in PerudoCord.ExampleConsumer.start_link/1>
Args: []
I think adding a quick reaction that will make sure the bot spams the idle player in order to get him to play faster could do wonders
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.