Hacktoberfest - 2019
Tags: programming, hacktoberfest, elixir, elixirschool
Published: 2019-10-14 08:16:58

---
title: Hacktoberfest - 2019
published: true
date: 2019-10-11 00:00:00 UTC
tags: programming,hacktoberfest,elixir,elixirschool
canonical_url: https://hambly.dev/hacktoberfest-2019.html
---

A quick rundown of the pull requests I submitted for Hacktoberfest.

[Hacktoberfest](https://hacktoberfest.digitalocean.com/) is an annual event to encourage involvement in open source software. Anyone around the world can earn a limited edition T-shirt, by submitting 4 or more pull requests to Github-hosted repositories during the month of October.

I wanted to take part for the past 2 years but didn’t manage in time. I was determined to earn my shirt this year! I knocked out the 4 PRs in the first week of October, and now it’s just a matter of waiting for the shirt to ship and hoping it doesn’t get “lost” in the SA customs/postal system.

This year I wanted to work on Elixir related documentation and code. I submitted 3 PRs to [ElixirSchool](https://github.com/elixirschool/elixirschool), and 1 to [Nadia](https://github.com/zhyu/nadia).

![Hacktoberfest 2019 powered by DigitalOcean and DEV.to](https://hambly.dev/assets/images/hack.jpg)

### Elixir School

[Elixir School](https://elixirschool.com/en/) is “the premier destination for people looking to learn and master the Elixir programming language.”

It’s a really great community of passionate Elixir developers, writing lessons and blog posts about their favorite programming language and ecosystem. They are very welcoming and friendly, and it was great to get involved.

My pull requests:

- [#2008](https://github.com/elixirschool/elixirschool/pull/2008) - Documentation in the “collections” lesson.
- [#2009](https://github.com/elixirschool/elixirschool/pull/2009) - Add an RSS feed for the site’s blog posts.
- [#2011](https://github.com/elixirschool/elixirschool/pull/2011) - Documentation in the “Ecto changesets” lesson.

### Nadia

[Nadia](https://hexdocs.pm/nadia/api-reference.html) is a “Telegram Bot API Wrapper written in Elixir”.

I’ve been using this library on a side-project, and wanted to contribute back. There was a relatively simple request to add the “Pin Chat Message” API call in [issue #94](https://github.com/zhyu/nadia/issues/94), so I decided to work on that.

In this PR I learned about [ExVCR](https://github.com/parroty/exvcr), an Elixir library inspired by Ruby’s [VCR](https://github.com/vcr/vcr), which allows you to record HTTP responses in your test suite so that future test runs use the recorded responses instead.

Since it was already in use in the Nadia library, it was fairly simple to add tests for the pin/unpin chat message functionality. I already had a Telegram bot I used for testing, so I created a new group, and then posted a message using the bot. That provided the chat ID, message ID, and API responses when calling PinChatMessage and UnpinChatMessage.

The ExVCR.Config module also provides the [`filter_sensitive_data/2`](https://hexdocs.pm/exvcr/ExVCR.Config.html#filter_sensitive_data/2) function to strip sensitive data out of the recorded response!

My pull request:

- [#96](https://github.com/zhyu/nadia/pull/96) - Implement pinChatMessage and unpinChatMessage.

Have you earned your shirt yet? Head to the [Hacktoberfest website](https://hacktoberfest.digitalocean.com/) and start hacking!