Code Monkey home page Code Monkey logo

bookworm's Introduction

BookWormIcon

The BookWorm Bot

Version Hits License

BookWorm Bot is a discord bot that has been designed to streamline book club activities within servers.

Current Status

This project is now closed and bookworm bot is no longer supported.

Usage, Commands & Features

Command Prefix = "bw!"

bw!ping - Returns my response time in milliseconds.

bw!info - Returns information about me.

bw!botsetup - If I'm new, use this command to create the required role and entries in my system.

bw!bookworms - Lists the current book club members and their book club information.

bw!topfive - Lists the top 5 book worms (book club members).

bw!pickaworm - Picks a random bookworm (book club member).

bw!profile - Returns your book club profile.

bw!booksearch - Search for a book (Limited to 10 results per search).

bw!setbook - Search for a book (Limited to 10 results per search) and set it as the current book club's read.

bw!currentbook - Check to see what the current set book is for book club.

bw!bookfinished - Let BookWorm Bot know that you've finished the current set book for book club.

bw!mybooks - Returns a list of all the books you've read.

bw!allbooks - Returns a list of all the books that have been read in the club.

bw!quote - Returns an inspirational or book inspired quote.

Future Implementations

Paginating bw!bookworms list - Not all the bookworms show, so the fix for that at the moment is bw!profile. The plan is to hopefully paginate bw!bookworms to show the full list.

Docker Image - A docker image for simple and easy deployment should exist.

Authors & Contributors

Iqra Haq - Author - CyberSec Analyst, Newcastle upon Tyne, UK.

livkx - Contributions/Bugfixes

Credits & Acknowledgments

joezhuang - Vector Designer @ Vecteezy ( School Vectors by Vecteezy ).

dwyl - Quotes via ( Github ).

New York Public Library - No Book Cover Image via ( nypl.org ).

The Rainbow Mosque - For inspiring me to create this bot.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

bookworm's People

Contributors

iqrahaq avatar livkx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bookworm's Issues

bw!botsetup not working

Hi there,

Not sure if this repo is working but wanted to notify an error on setting up the bot.

Error. Try bw!help (Command raised an exception: OperationalError: database is locked)

Thanks! Let me know if I can help.

Error. Try bw!help (Command raised an exception: AttributeError: 'NoneType' object has no attribute 'id')

When attempting to run bw!botsetup from Discord, I get the following error:

Error. Try bw!help (Command raised an exception: AttributeError: 'NoneType' object has no attribute 'id')

and on the server console, I get this:

Traceback (most recent call last):
  File "/home/vagrant/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/vagrant/code/cogs/Bot.py", line 42, in botsetup
    GUILD = ctx.guild.id
AttributeError: 'NoneType' object has no attribute 'id'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/vagrant/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/home/vagrant/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/vagrant/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'id'

've been working on getting this working in Docker container on my Raspberry Pi server, and the bot setup is the last step (I hope!) that I can't seem to get working.

I've attempted to follow the instructions to the letter in an Ubuntu 18.04 virtual machine and I get the same error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.