From 2b4f7335f382019af63d7fe8c17b8120256b331f Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sat, 5 Nov 2022 17:27:54 +0100 Subject: [PATCH] rubocop -A examples/ --- examples/01_chat_logger.rb | 1 + examples/02_packet_debugger.rb | 1 + examples/03_send_chat.rb | 1 + examples/04_player_infos.rb | 1 + examples/05_chatbot.rb | 1 + examples/06_join_leave_messages.rb | 1 + 6 files changed, 6 insertions(+) diff --git a/examples/01_chat_logger.rb b/examples/01_chat_logger.rb index 88d112a..428d7d6 100755 --- a/examples/01_chat_logger.rb +++ b/examples/01_chat_logger.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # Print all incoming chat messages to stdout diff --git a/examples/02_packet_debugger.rb b/examples/02_packet_debugger.rb index b624864..365e402 100755 --- a/examples/02_packet_debugger.rb +++ b/examples/02_packet_debugger.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # Prints out all network traffic diff --git a/examples/03_send_chat.rb b/examples/03_send_chat.rb index a298c61..3b2232e 100755 --- a/examples/03_send_chat.rb +++ b/examples/03_send_chat.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # Chat spamming client diff --git a/examples/04_player_infos.rb b/examples/04_player_infos.rb index cf2cbd9..c4672f9 100755 --- a/examples/04_player_infos.rb +++ b/examples/04_player_infos.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # Set custom skin and other player infos diff --git a/examples/05_chatbot.rb b/examples/05_chatbot.rb index 1ae0e54..8b32ba4 100755 --- a/examples/05_chatbot.rb +++ b/examples/05_chatbot.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # Reply to ! prefixed commands in chat # diff --git a/examples/06_join_leave_messages.rb b/examples/06_join_leave_messages.rb index 7feef7c..49b6723 100755 --- a/examples/06_join_leave_messages.rb +++ b/examples/06_join_leave_messages.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require_relative '../lib/teeworlds-client'