# Writing My Own Plugin

**URL:** https://discourse.beets.io/t/writing-my-own-plugin/1086
**Category:** Help
**Created:** [February 2, 2020, 11:32am UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086 "2020-02-02T11:32:15Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![dilanuslan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/dilanuslan/32/344_2.png) [@dilanuslan](https://discourse.beets.io/u/dilanuslan)
#### Post date: [February 2, 2020, 11:32am UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/1 "2020-02-02T11:32:15Z")

</div>

Hello everyone,

I am trying to write my own plugin to beets. I keep seeing this error message even though my plugin is defined in the namespace. Do you have any suggestions to fix this? I really need your opinions. 😊 ![error](https://canada1.discourse-cdn.com/flex029/uploads/beets/original/1X/95f5ada87c4f699c088b28556eabdf187a3b16ae.png) ![version](https://canada1.discourse-cdn.com/flex029/uploads/beets/original/1X/12170537b2862b9404c13b846f1a4e60c55f264e.png)

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [February 2, 2020, 8:14pm UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/2 "2020-02-02T20:14:00Z")

</div>

Hi! It’s not really clear from this what might be going on. Can you share your code?

---

<div class="post-metadata">

### Author: ![dilanuslan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/dilanuslan/32/344_2.png) [@dilanuslan](https://discourse.beets.io/u/dilanuslan)
#### Post date: [February 2, 2020, 8:25pm UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/3 "2020-02-02T20:25:47Z")

</div>

I attached the config.yaml and the code. Do you need to see anything else? And thank you so much for the response.

![1](https://canada1.discourse-cdn.com/flex029/uploads/beets/original/1X/05bdb9f258d0a2b1d8c65a64c0deb881a4e0f62e.png) ![2](https://canada1.discourse-cdn.com/flex029/uploads/beets/original/1X/ac28712787b36a4c7519a4d11257b0683937fcaa.png)

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [February 2, 2020, 8:52pm UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/4 "2020-02-02T20:52:22Z")

</div>

If you look back at [the docs](https://beets.readthedocs.io/en/stable/dev/plugins.html#add-commands-to-the-cli), you’ll see that it’s `commands`, not `command`. 😃

---

<div class="post-metadata">

### Author: ![dilanuslan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/dilanuslan/32/344_2.png) [@dilanuslan](https://discourse.beets.io/u/dilanuslan)
#### Post date: [February 2, 2020, 8:58pm UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/5 "2020-02-02T20:58:14Z")

</div>

I fixed that little stupid mistake 😃 But I still have the same error ☹

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [February 2, 2020, 9:11pm UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/6 "2020-02-02T21:11:25Z")

</div>

Can you please put your code in a public git repository some where? Occasional screenshots are not the best way to help debug. 🙂

---

<div class="post-metadata">

### Author: ![dilanuslan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/dilanuslan/32/344_2.png) [@dilanuslan](https://discourse.beets.io/u/dilanuslan)
#### Post date: [February 2, 2020, 9:23pm UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/7 "2020-02-02T21:23:45Z")

</div>

[https://github.com/dilanuslan/beets](https://github.com/dilanuslan/beets) I included the file structure to the readme. Hope you can figure it out thank you so much.

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [February 3, 2020, 1:46am UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/8 "2020-02-03T01:46:58Z")

</div>

Try typing `beet help` to see the commands available, including with your plugin. You have given the command a different name from your plugin.

---

<div class="post-metadata">

### Author: ![dilanuslan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/dilanuslan/32/344_2.png) [@dilanuslan](https://discourse.beets.io/u/dilanuslan)
#### Post date: [February 3, 2020, 5:29pm UTC](https://discourse.beets.io/t/writing-my-own-plugin/1086/9 "2020-02-03T17:29:53Z")

</div>

Thank you so much, I don’t know where I did that but I figured out that my plugin is called “super”. I consumed your time, but that was a relief for me. Have good day! 🙂
