File pages.py
has 539 lines of code (exceeds 250 allowed). Consider refactoring.
from email import message
import logging as log
import sys
from telebot.util import split_string as split_string
Function return_verse
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
def return_verse(self, user_id: str, income_text: str) -> list:
"""Return the desired verse
Args:
user_id (str):
Function get_message
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
def get_message(message: str, bible_version: str = "akjv") -> list:
"""Get the passage of the Bible given an income message.
Args:
message (str):
Function send_chapter
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
def send_chapter(
self,
user_id: str,
) -> list:
"""Send chapter functionality
Avoid too many return
statements within this function.
return [self.set_chapter_selection(user_id, income_text)]
Avoid too many return
statements within this function.
return [
Avoid too many return
statements within this function.
return [self.set_bible_version(user_id, income_text)]
Function set_chapter_selection
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
def set_chapter_selection(self, user_id: str, income_text: str) -> str:
"""_summary_
Args:
user_id (str):
Function default
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
def default(
self,
user_id: str,
income_text: str,
) -> list: