src/reddit_bot.py
def is_summon_chain(self, target):
        """Checks if parent comment of target is from self.
        Used to prevent infinite reply loop caused by another bot.

        Parameters
        ----------
        target : reddit.comment object
            Target Reddit comment.

        Returns
        -------
        bool
            True if parent comment of target is from bot. False otherwise.

        """
        return True if (
            not target.is_root and target.parent().author == self.username
            ) else False
Checks if parent comment of target is from self.
        Used to prevent infinite reply loop caused by another bot.

        Parameters
        ----------
        target : reddit.comment object
            Target Reddit comment.

        Returns
        -------
        bool
            True if parent comment of target is from bot. False otherwise.

        
Checks if parent comment of target is from self.
Used to prevent infinite reply loop caused by another bot.

Parameters

target : reddit.comment object
Target Reddit comment.

Returns

bool
True if parent comment of target is from bot. False otherwise.
Checks if parent comment of target is from self . Used to prevent infinite reply loop caused by another bot . Parameters target : reddit . comment object Target Reddit comment . Returns bool True if parent comment of target is from bot . False otherwise .
def is_summon_chain(self, target):
        return True if (
            not target.is_root and target.parent().author == self.username
            ) else False
def is_summon_chain ( self , target ) : return True if ( not target . is_root and target . parent ( ) . author == self . username ) else False
Checks if parent comment of target is from self.
Checks if parent comment of target is from self .
"""Checks if parent comment of target is from self.
        Used to prevent infinite reply loop caused by another bot.

        Parameters
        ----------
        target : reddit.comment object
            Target Reddit comment.

        Returns
        -------
        bool
            True if parent comment of target is from bot. False otherwise.

        """
self
target