Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
21:28:01.981 [error] ** Websocket handler Catbug.Bot terminating
** for the reason {:handler,
{:badkey, :text,
%{channel: "C0ZBTJZQQ", event_ts: "1461990481.035809", hidden: true,
message: %{attachments: [%{fallback: "544x352px image",
from_url: "https://45.media.tumblr.com/62b167879a37b87de49e6bf7b7c23af7/tumblr_n2gb89SmGu1r922pyo1_1280.gif",
id: 1, image_bytes: 684915, image_height: 352,
image_url: "https://45.media.tumblr.com/62b167879a37b87de49e6bf7b7c23af7/tumblr_n2gb89SmGu1r922pyo1_1280.gif",
image_width: 544, is_animated: true}],
text: "You're my friends now. We're having soft tacos later! <https://45.media.tumblr.com/62b167879a37b87de49e6bf7b7c23af7/tumblr_n2gb89SmGu1r922pyo1_1280.gif>",
ts: "1461990481.000003", type: "message", user: "U14P0HGCU"},
previous_message: %{text: "You're my friends now. We're having soft tacos later! <https://45.media.tumblr.com/62b167879a37b87de49e6bf7b7c23af7/tumblr_n2gb89SmGu1r922pyo1_1280.gif>",
ts: "1461990481.000003", type: "message", user: "U14P0HGCU"},
subtype: "message_changed", ts: "1461990481.000004", type: "message"}}}
** Handler state was %{slack: %{bots: %{"B0ZC6CM7U" => %{deleted: false, id: "B0ZC6CM7U",
name: "gdrive"},
"B14PAKC4F" => %{deleted: false,
icons: %{image_36: "https://a.slack-edge.com/2fac/plugins/bot/assets/service_36.png",
image_48: "https://a.slack-edge.com/2fac/plugins/bot/assets/service_48.png",
image_72: "https://a.slack-edge.com/12b5a/plugins/bot/assets/service_72.png"},
id: "B14PAKC4F", name: "bot"}},
channels: %{"C0ZBTJZQQ" => %{created: 1460226779, creator: "U0ZBUQTHV",
has_pins: false, id: "C0ZBTJZQQ", is_archived: false, is_channel: true,
is_general: true, is_member: true, last_read: "1461899041.000029",
latest: %{text: "Sense of humor set to 10", ts: "1461901411.000040",
type: "message", user: "U14P0HGCU"},
members: ["U0ZBUQTHV", "U14P0HGCU"], name: "general",
purpose: %{creator: "", last_set: 0,
value: "This channel is for team-wide communication and announcements. All team members are in this channel."},
topic: %{creator: "", last_set: 0,
value: "Company-wide announcements and work-based matters"},
unread_count: 11, unread_count_display: 6},
"C0ZBTJZSL" => %{created: 1460226780, creator: "U0ZBUQTHV",
has_pins: false, id: "C0ZBTJZSL", is_archived: false, is_channel: true,
is_general: false, is_member: true, last_read: "1461901898.000002",
latest: %{subtype: "channel_join",
text: "<@U0ZBUQTHV|josh> has joined the channel",
ts: "1461902125.000009", type: "message", user: "U0ZBUQTHV"},
members: ["U0ZBUQTHV", "U14P0HGCU"], name: "random",
purpose: %{creator: "", last_set: 0,
value: "A place for non-work-related flimflam, faffing, hodge-podge or jibber-jabber you'd prefer to keep out of more focused work-related channels."},
topic: %{creator: "", last_set: 0,
value: "Non-work banter and water cooler conversation"},
unread_count: 7, unread_count_display: 0}}, client: :websocket_client,
groups: %{},
me: %{created: 1461893850, id: "U14P0HGCU", manual_presence: "active",
name: "catbug",
prefs: %{speak_growls: false, emoji_autocomplete_big: false,
separate_private_channels: false, pagekeys_handled: true,
confirm_sh_call_start: true, tz: nil, no_macssb1_banner: false,
mac_ssb_bounce: "", emoji_use: "", display_real_names_override: 0,
hide_user_group_info_pane: false, search_only_my_channels: false,
seen_spaces_new_xp_tooltip: false, autoplay_chat_sounds: true,
msg_preview: false, posts_formatting_guide: true,
has_created_channel: false, spaces_new_xp_banner_dismissed: false,
snippet_editor_wrap_long_lines: false, k_key_omnibox: true,
seen_onboarding_start: false, seen_welcome_2: false,
email_alerts_sleep_until: 0, seen_onboarding_recent_mentions: false,
no_flex_in_history: true, seen_live_support_popup: false,
comma_key_prefs: false, push_loud_channels: "",
two_factor_auth_enabled: false, graphic_emoticons: false,
welcome_message_hidden: false, expand_snippets: false,
mute_sounds: false, seen_onboarding_search: false,
newxp_seen_last_message: 0, mentions_exclude_at_channels: true,
has_uploaded: false, jumbomoji: true, never_channels: "",
display_preferred_names: true, ...}},
socket: {:websocket_req, :wss, 'mpmulti-zjpa.slack-msgs.com', 443,
'/websocket/WeJYr8G89hd9Fre00up5haPgcPgj_D3YJO_GPhv2booqk4AXr-7kC_lqKu94O-I6nXRqRYs5otLEySsXjjUokhArt_rRqhN8PE9MOfRYSy2yj9WkMDcumG4ijXa9c2q-2IT_-133PWbiKYQYmvApVQ==',
:infinity, :undefined,
{:sslsocket, {:gen_tcp, #Port<0.6966>, :tls_connection, :undefined},
#PID<0.172.0>}, :ssl, Catbug.Bot, "fpxBvpDfgWC7gL7/7MprqQ==", :undefined,
:undefined, :undefined, :undefined, :undefined},
team: %{domain: "chernoff", email_domain: "",
icon: %{image_102: "https://a.slack-edge.com/66f9/img/avatars-teams/ava_0014-102.png",
image_132: "https://a.slack-edge.com/66f9/img/avatars-teams/ava_0014-132.png",
image_34: "https://a.slack-edge.com/0180/img/avatars-teams/ava_0014-34.png",
image_44: "https://a.slack-edge.com/0180/img/avatars-teams/ava_0014-44.png",
image_68: "https://a.slack-edge.com/66f9/img/avatars-teams/ava_0014-68.png",
image_88: "https://a.slack-edge.com/66f9/img/avatars-teams/ava_0014-88.png",
image_default: true}, id: "T0ZBUQTGX", msg_edit_window_mins: -1,
name: "chernoffs", over_integrations_limit: true,
over_storage_limit: false, plan: "",
prefs: %{who_can_post_general: "ra", dm_retention_type: 0,
who_has_team_visibility: "ra",
who_can_manage_integrations: %{type: ["regular"]},
compliance_export_start: 0, dm_retention_duration: 0,
allow_calls: false, who_can_create_shared_channels: "admin",
who_can_change_team_profile: "admin", msg_edit_window_mins: -1,
retention_duration: 0, retention_type: 0,
who_can_archive_channels: "regular", group_retention_duration: 0,
auth_mode: "normal", file_retention_duration: 0,
who_can_create_channels: "regular", group_retention_type: 0,
allow_retention_override: true, dnd_enabled: true, hide_referers: true,
file_retention_type: 0, dnd_start_hour: "22:00",
who_can_at_everyone: "regular", who_can_kick_channels: "admin",
invites_only_admins: false,
default_rxns: ["simple_smile", "thumbsup", "white_check_mark", "heart",
"eyes"], warn_before_at_channel: "always",
default_channels: ["C0ZBTJZQQ", "C0ZBTJZSL"],
allow_shared_channels: false, who_can_create_groups: "ra",
who_can_edit_user_groups: "admin", dnd_end_hour: "08:00", ...}},
users: %{"U0ZBUQTHV" => %{color: "9f69e7", deleted: false, id: "U0ZBUQTHV",
is_admin: true, is_bot: false, is_owner: true, is_primary_owner: true,
is_restricted: false, is_ultra_restricted: false, name: "josh",
presence: "active",
profile: %{avatar_hash: "g486162db0cc", email: "joshc@digitalcak.es",
fields: nil, first_name: "josh",
image_192: "https://secure.gravatar.com/avatar/486162db0cc17ae06ab6ad29ecb3f699.jpg?s=192&d=https%3A%2F%2Fa.slack-edge.com%2F7fa9%2Fimg%2Favatars%2Fava_0019-192.png",
image_24: "https://secure.gravatar.com/avatar/486162db0cc17ae06ab6ad29ecb3f699.jpg?s=24&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0019-24.png",
image_32: "https://secure.gravatar.com/avatar/486162db0cc17ae06ab6ad29ecb3f699.jpg?s=32&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0019-32.png",
image_48: "https://secure.gravatar.com/avatar/486162db0cc17ae06ab6ad29ecb3f699.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0019-48.png",
image_512: "https://secure.gr (truncated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.